problem with popen on Win32

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

I'm using ActivePython 2.0/2.1 on W2K..
import os
child = os.popen("cmd /c bar.bat")
for line in child.readlines(): pass

start calc is supposed to start bar.bat, wait for it to finish, and then
continue.  However, bar.bat finishes but 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