[Tutor] Question about subprocess
daedae11
daedae11 at 126.com
Sat Jan 11 05:48:13 CET 2014
p = subprocess.Popen(['E:/EntTools/360EntSignHelper.exe', 'E:/build/temp/RemoteAssistSetup.exe'],
stdout=subprocess.PIPE, shell=True).stdout
temp = p.readline();
print temp
p.close()
When I run the above code in command line, it works formally.
However, when I writed it into a .py file and execute the .py file, it blocked at "temp=p.readline()".
What's the problem?
Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140111/ca7ab5a9/attachment-0001.html>
More information about the Tutor
mailing list