Executing a system command
jb
jblazi at hotmail.com
Thu May 23 11:45:50 EDT 2002
George Demmy wrote:
> jb <jblazi at hotmail.com> writes:
>> I already looked at os.environ. It contains the variable TEXINPUTS. I
>> hope that this environment is passed on to the system call. How can I
>> find out if there are additional variables I have to set?
>>
>
> If you can run your commands successfully at the command line, then
> you just need to make sure that your environments match. They
> should. If the environments match, and you can run your command set at
> the command line successfully, then you've got some other problem that
> you'll have to discover. You might consider exploring a different line
> of reasoning, e.g., os.chdir, doing in python what can be done in
> python, and using os.system for what can only be done outside of
> python. Also, start with trivial cases (e.g., simple documents based
> upon default documentclasses), and work toward the more general and
> complex.
I tried os.system('latex test.tex') and it does not work either.
How can I make sure that the environments are the same?
--
Janos Blazi
"Il n'y a guère dans la vie qu'une préoccupation grave: c'est la mort;"
(Dumas)
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
More information about the Python-list
mailing list