python - pyinstaller on Windows with --noconsole simply won't work -
i have simple gui (wxpython) app , working great. i'm using windows 7.
when compiling using pyinstaller
-w
(or --noconsole
or --windowed
) , run it, can see console window millisecond , shutdown. gui app won't run.
compiling without -w produce working app console window.
what missing here?
i guess somehow launching subprocess gets messed when python runs without console window. have had solve 3 problems related this:
- the
multiprocessing
module needs set environment variable when spawns worker processes. - the
subprocess
module needs explicitly handlestdin
,stdout
, ,stderr
, because standard file handles aren't set subprocesses inherit. - the subprocess creates console window, unless tell not to.
Comments
Post a Comment