Hide DOS console for .pyc file

Jason Earl jearl at notengoamigos.org
Sat Sep 11 08:53:34 CEST 2010

On Fri, Sep 10 2010, Muddy Coder wrote:

> Hi Folks,
> For a quick testing purpose, I deliver .pyc files to my customer. I
> don't want the black DOS console appearing behind my GUI, but I have
> no idea how to do it. Somebody can help? Thanks!
> Cosmo

I don't really use Windows any more, so I might be off the mark, but I
think that you need to look into using pythonw.exe instead of
python.exe.  Solving your problem might be as easy as changing the name
of your file from foo.py to foo.pyw.


More information about the Python-list mailing list