problem with popen on Win32

nobody root at [127.0.0.1]
Sat Jul 7 11:02:25 EDT 2001


I'm using ActivePython 2.0/2.1 on W2K..

foo.py:
import os
child = os.popen("cmd /c bar.bat")
for line in child.readlines(): pass
child.close()

bar.bat:
start calc


foo.py is supposed to start bar.bat, wait for it to finish, and then
continue.  However, bar.bat finishes but foo.py won't continue until calc is
closed.  Is it possible to get popen to wait only for the program specified
to complete, not all of the grandchildren?






More information about the Python-list mailing list