Re: Trouble with os.system

2010-02-03 Thread Cpa
; It kinda worked for me but I had to change it a little: > > os.system('for file in /tmp/*.tex; do pdflatex "$file"; done') > > Maybe you're picking up other files in /tmp that  are not .tex files? > > > > On Wed, Feb 3, 2010 at 12:58 P

Re: Trouble with os.system

2010-02-03 Thread Cpa
Sure. import sys,re,os files2create = sys.argv[1:] os.system('mkdir tmp') # Some code to create the .tex # Compile tex files os.system('for file in tmp/*; do pdflatex "$file"; done') Pretty simple, alas. -- Cpa On 3 fév, 18:54, Gerald Britton wrote: > Can y

Trouble with os.system

2010-02-03 Thread Cpa
sing os.system(), it will compile correctly every file except the last one, for which it raises an error (I get a prompt, as if I did a syntax error in tex document). I suspected some kind of escaping issue, but it won't even work with files such as : foo.txt, bar.txt. Any idea ? Thanks, Cpa --