python subprocess know how
animator333 at gmail.com
Sun Aug 31 10:55:41 CEST 2008
I am using subprocess module to execute a command and print results
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
my_process = subprocess.Popen(cmnd, startupinfo=startupinfo)
This code executes on pressing a button (wxPython). The problem is
until command is not done
and it's results are not printed, program halts and button keep the
state of pushed.
Is there any way to avoid this?
More information about the Python-list