title: How do I check from within python whether LaTeX and TeX Live are installed on a computer?
body: <p>I am writing a python program which generates TeX code that gets compiled into a PDF document. For this to work, I need to make sure that the user has some distribution of LaTeX installed on their computer. How do I do this from within Python 2.7 in a platform-independent way?</p>