[issue1525] Executing Python script using subprocess.Popen twice interactively fails without error the second time

2007-11-30 Thread canhuth
canhuth added the comment: Bah, silly me, I apologize, and thank you for the quick feedback. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1525 __ ___ Python-bugs-list mailing

[issue1525] Executing Python script using subprocess.Popen twice interactively fails without error the second time

2007-11-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Top-level statements are executed only the first time the module is imported: http://docs.python.org/tut/node8.html#moreModules To execute a script from python, you should consider the execfile() function instead. -- nosy: +amaury.forgeotdarc

[issue1525] Executing Python script using subprocess.Popen twice interactively fails without error the second time

2007-11-30 Thread canhuth
New submission from canhuth: Executing script using subprocess.Popen twice interactively fails without error the second time. File a.py: print start import subprocess print first call process = subprocess.Popen( args = cmd.exe /c echo 1, stdout = subprocess.PIPE) for line in