[Tutor] Killing the Dos window
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Sun Aug 17 21:10:30 EDT 2003
On 17 Aug 2003, Mike Wagman wrote:
> While I love getting error and debug messages when I am coding. I am
> getting something ready to send to an end user (amatuer programmer with
> first project with commercial potential). Is there a way - to not get
> that dos window opening. I am using py2exe to create the executable, and
> would just like to clean things up a bit. I am piping std error to a
> file but the window still opens.
Hi Mike,
Yes, we can keep the console window from opening up by naming your
Python program file with a '.pyw' extension.
Alternatively, we can use the '--windows' option from py2exe,
http://py2exe.sourceforge.net/
and it'll will also suppress the console window.
Good luck to you!
More information about the Tutor
mailing list