how to build same executabl with and without console output

Gelonida gelonida at gmail.com
Fri Jul 30 04:10:13 EDT 2010


Hi,


What I'd like to achieve ideally is to create a py2exe program,
which
will only display a window (so 'compiled' as 'windows'-application) if
called normally.

however if being called with the option --debug it should display the
graphical window plus a debug console where I can print to.



Is there any trick in adding a console window to an application,
that was built as 'windows' application?




If above is not possible:

Is there any way to compile the same python script (myprog.py) from one
py2exe script into once a 'windows' executable (myprog.exe) and once
into a 'console' executable (myprog_debug.exe)?




TIA







More information about the Python-list mailing list