py2exe - change name of exe created

imageguy imageguy1206 at gmail.com
Fri Sep 7 18:25:02 CEST 2007


On Sep 7, 11:22 am, Thomas Heller <thel... at ctypes.org> wrote:
> imageguy schrieb:
>
>
>
>
>
> > Sorry for the double post, sent it to quickly.
>
> > I have a setup script like this;
>
> > setup(windows = [{"script":"myprogram.py",
> >                    "icon_resources":[(0,"nabbitt.ico")],
> >                     "other_resources": [(24,1,manifest)]}
> > ],
> >                 name = "My Program ver 0.1",
> >                 data_files = [("",rootdata)],
> >                 zipfile = None,
> >                 options = {"py2exe": {
> >                                        "compressed" : 1,
> >                                        "dll_excludes":
> > ["w9xpopen.exe"],
> >                                         "bundle_files": 3
> >                                                 }
> >                         },
> >                 )
>
> > Note that every thing works fine with this and creates an exe program
> > called
> > "myprogram.exe"
>
> > I would like to setup program to create an output called;
> > "MyBestProgram.exe"
>
> > IS that at all possible ?
>
> Yes.  Use a 'dest_base' key in the dictionary, like so:
>
> > setup(windows = [{"script":"myprogram.py",
> >                    "icon_resources":[(0,"nabbitt.ico")],
>
>                      "dest_base": "MyBestProgram",>                     "other_resources": [(24,1,manifest)]}
>
> ...
>
> 'dest_base' is the basename of the destination program that py2exe creates.
>
> Thomas- Hide quoted text -
>
> - Show quoted text -

Thanks.
I really appreciate the response.
Where would I find that in the docs ?  Thought I had searched
everywhere.

G.




More information about the Python-list mailing list