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
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
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