Hi,
I am using subprocess module to execute a command and print results
back.
startupinfo = subprocess.STAR TUPINFO()
startupinfo.dwF lags |= subprocess.STAR TF_USESHOWWINDO W
my_process = subprocess.Pope n(cmnd, startupinfo=sta rtupinfo)
print repr(my_process .communicate()[0])
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?
Thanks
I am using subprocess module to execute a command and print results
back.
startupinfo = subprocess.STAR TUPINFO()
startupinfo.dwF lags |= subprocess.STAR TF_USESHOWWINDO W
my_process = subprocess.Pope n(cmnd, startupinfo=sta rtupinfo)
print repr(my_process .communicate()[0])
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?
Thanks
Comment