how to build same executabl with and without console output

G

Gelonida

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top