py2exe setup script problem

Larry Bates lbates at swamisoft.com
Mon May 24 11:37:51 EDT 2004


What do you expect to happen?  If program creates
output, you need a console window to display it
(unless you use GUI interface).  Without console
output has no where to go.  I actually use this
to my advantage on some lights-out applications
that write all their output to log files.

Larry Bates
Syscon, Inc.

"Philipp Kruse" <spam at pky2k.de> wrote in message
news:2hchapFbelulU1 at uni-berlin.de...
> I am trying to create an executable version of a python script using
> py2exe 0.5 (Python 2.3.4c1). The basic script looks something like this:
>
> setup(
> [...]
> windows = [ 'src/__main__.py',
>                  {   'script': 'src/__main__.py',
>                      'icon_resources': [(1, "data/small.ico")]}
>                 ],
> )
>
>
> After running py2exe I try to execute the created .exe file and -
> nothing happens.
>
>
> However, I tried changing the script to this:
>
> setup(
> [...]
> console = ['src/__main__.py'],
> )
>
>
> Suddenly everything works fine. Even so, I simply need to get rid of
> that console window.
>
> I tried reading through the wiki and searched this group but found
> nothing that could solve the problem.
>
> Does anyone have an idea?
>
>
> Philipp





More information about the Python-list mailing list