Hi,

Thanks for this great tool. Pyinstaller offers us great help on packaging
Python projects.

We run into a issue. Our WxPython (WxWidget) based application support both
console mode and non-console mode.

In console mode, "C:\mytools.exe --help" will print the standard help
information to the stdout and it can also get the input from stdin to allow
user iteration in text mode. In non-console mode, "C:\mytools.exe" will
launch the GUI windows. No console windows will be launch.

We are tweaking the standard spec file to use either console or non-console
mode. How to make the application support both mode? In another word, if
options such as "--help" is given it will interact with stdout/stdin; if no
options is given, it will just launch the Windows GUI.

exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build\\pyi.win32\\bldk', 'bldk.exe'),
          debug=False,
          strip=False,
          upx=False,
          console=True )
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=False,
               name=os.path.join('dist', 'bldk'))

Any help is appreciated.

Best Regards
Scott

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to