py2exe and output executable name

Thomas Heller theller at python.net
Thu Sep 1 07:49:37 EDT 2005


Miki Tebeka <miki.tebeka at zoran.com> 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
names.

Thomas



More information about the Python-list mailing list