Re: subprocess.Popen fails, but os.system works

2007-04-24 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, bahoo wrote: > This line of code fails (see error message at the end), > > last_line = subprocess.Popen(["D:/release/win.exe 0.5 1000 100 D:/ > images/img.ppm out.ppm"], stdout=subprocess.PIPE).communicate()[0] > > but using "os.system" works: > os.system('D:/release/win.

subprocess.Popen fails, but os.system works

2007-04-24 Thread bahoo
Hi, I am using Windows + Python 2.5. This line of code fails (see error message at the end), last_line = subprocess.Popen(["D:/release/win.exe 0.5 1000 100 D:/ images/img.ppm out.ppm"], stdout=subprocess.PIPE).communicate()[0] but using "os.system" works: os.system('D:/release/win.exe 0.5 1000