Re: how to test for a dependency

2006-01-09 Thread Steven Bethard
Darren Dale wrote: > I would like to test that latex is installed on a windows, mac or linux > machine. What is the best way to do this? This should work: > > if os.system('latex -v'): > print 'please install latex' > > but I dont actually want the latex version information to print to screen

Re: how to test for a dependency

2006-01-09 Thread Darren Dale
Sybren Stuvel wrote: > Darren Dale enlightened us with: >> I would like to test that latex is installed on a windows, mac or linux >> machine. What is the best way to do this? This should work: >> >> if os.system('latex -v'): >> print 'please install latex' > > The downside is that you can on

Re: how to test for a dependency

2006-01-09 Thread Darren Dale
Dennis Benzinger wrote: > Darren Dale schrieb: >> Hello, >> >> I would like to test that latex is installed on a windows, mac or linux >> machine. What is the best way to do this? This should work: >> >> if os.system('latex -v'): >> print 'please install latex' >> >> but I dont actually wan

Re: how to test for a dependency

2006-01-09 Thread Sybren Stuvel
Darren Dale enlightened us with: > I would like to test that latex is installed on a windows, mac or linux > machine. What is the best way to do this? This should work: > > if os.system('latex -v'): > print 'please install latex' The downside is that you can only use this to test by executing.

Re: how to test for a dependency

2006-01-09 Thread Dennis Benzinger
Darren Dale schrieb: > Hello, > > I would like to test that latex is installed on a windows, mac or linux > machine. What is the best way to do this? This should work: > > if os.system('latex -v'): > print 'please install latex' > > but I dont actually want the latex version information to p

how to test for a dependency

2006-01-09 Thread Darren Dale
Hello, I would like to test that latex is installed on a windows, mac or linux machine. What is the best way to do this? This should work: if os.system('latex -v'): print 'please install latex' but I dont actually want the latex version information to print to screen. I tried redirecting sys