python - py2exe: Allow a console window to be either shown or hidden with a sys.argv -
i have python program using pyside. when run normally, opens pyside gui, when run flags in command line, spits things out in console window.
i'd retain dual functionality, seems py2exe have choose whether have console window or not when compiling, no option choosing during program execution.
is want possible py2exe, or other python "compiler?"
this not py2exe limitation, windows limitation. on windows, applications compiled either console applications or gui applications. difference console applications open console window, whilst gui applications never do.
as far can tell, it's not possible have application dual functionality. workaround, suggest compile 2 executables: 1 console use , 1 gui use.
Comments
Post a Comment