Hiding console with program compiled in PY2EXE
jorgencederberg at hotmail.com
Fri Dec 19 09:43:12 CET 2003
> # setup.py
> from distutils.core import setup
> import py2exe
> From the dos command prompt:
> c:\python23> python.exe setup.py py2exe
from distutils.core import setup
c:\python23> python.exe setup.py py2exe -w
Which works for me :)
All options are described on http://starship.python.net/crew/theller/py2exe/
> This works for me.
> Hope it helps,
> "Marc" <mnations at airmail.net> schreef in bericht
> news:4378fa6f.0312182234.42c4fe73 at posting.google.com...
>>I know that to hide a console normally you simply change the extension
>>from .py to .pyw. That's simple enough. However I can't seem to
>>accomplish the same thing after freezing the program. I've tried
>>building the setup file with the python script as a .pyw file, but it
>>crashes and doesn't give me a reason. This is of course because the
>>debug window doesn't open, so you don't know what happened (ahh, the
>>Does anyone know how to successfully freeze a program with py2exe?
More information about the Python-list