py2exe and output executable name

Thomas Heller theller at
Thu Sep 1 13:49:37 CEST 2005

Miki Tebeka <miki.tebeka at> writes:

> Hello All,
> Is there a way to tell py2exe to create an executable with arbirary name?
> Currently the executable name is the script name with .exe suffix.

See the advanced sample in lib/site-packages/py2exe/samples/advanced.
The executable name is defined by the 'dest_base' attribute of the
Target class.  This sample uses it to build a console *and* a gui
version at the same time from the small wxPython script, with different


More information about the Python-list mailing list