py2exe - change name of exe created

Grant Edwards grante at visi.com
Fri Sep 7 09:17:53 EDT 2007


On 2007-09-07, imageguy <imageguy1206 at gmail.com> wrote:

> 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 ?

ADD this to the end of your script:

import os
os.rename('dist/myprogram.exe','dist/MyBestProgram.exe')

-- 
Grant Edwards                   grante             Yow! Zippy's brain cells
                                  at               are straining to bridge
                               visi.com            synapses ...



More information about the Python-list mailing list