Yes. Running the attached subprocess_test.py produces out.txt containing
'Failed: [Error 6] The handle is invalid' when run as pyinstaller
--noconsole subprocess_test.py. Running using pyinstaller
subprocess_test.py or python subprocess_test.py produces the usual Python
help text.
Bryan
On Sat, Jan 11, 2014 at 4:21 PM, Martin Zibricky <[email protected]>wrote:
> On Friday 10 of January 2014 15:00:39 Bryan A. Jones wrote:
> > All the code works fine when running without --noconsole or running
> > directly from Python. Any ideas on how to run a child subprocess
> > successfully, but without opening a console window?
>
> Do you have any code that would reproduce this behavior easily?
--
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi state, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298
Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.
import subprocess
with open('out.txt', 'w') as f:
try:
h = subprocess.check_output(['python', '--help'])
f.write(h)
except OSError as e:
f.write('Failed: ' + str(e))