I have a setup script like this;
setup(windows = [{"script":"myprogram.py",
"icon_resources":[(0,"nabbitt.ico")],
"other_resources": [(24,1,manifest)]}
],
name = "Nabbitt ver 0.1",
data_files = [("",rootdata)],
zipfile = None,
options = {"py2exe": {
"compressed" : 1,
"dll_excludes": ["w9xpopen.exe"], #should also exclude
MSVCR71.dll
"bundle_files": 3 # 1=Single .exe, 2=.exe with
pythonXX.dll
}
},
) 4 5128
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 ?
Geoff.
On 2007-09-07, imageguy <im**********@gmail.comwrote:
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 ...
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
On Sep 7, 11:22 am, Thomas Heller <thel...@ctypes.orgwrote:
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RJS |
last post by:
Hi all,
I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32-
py2.2).
Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222.
In the sample below, commenting out...
|
by: Thomas Heller |
last post by:
"Brad Clements" <bkc@murkworks.com> writes:
> Once again I apologize for posting this py2exe question in the ctypes list. ;-)
In the long run, this will be the wrong forum. I suggest...
|
by: Marc |
last post by:
Hi all,
I know that to hide a console normally you simply change the extension
from .py to .pyw. That's simple enough. However I can't seem to
accomplish the same thing after freezing the...
|
by: Funduk |
last post by:
Hello,
So I've been playing with Python and Pygame for a while and I decided
I wanted to make a real executable so I could send that stuff over to
my friends to show off my <sarcasm>maad...
|
by: Werner Merkl |
last post by:
Hi,
we have written a Python EXE program, which should run via AUTORUN.INF
from a CD/DVD (Windows of course).
For this CD/DVD we us a imaging tool from Microsoft, which seam to
generate...
|
by: mitsura |
last post by:
Hi,
I just installed py2exe to create a binary of my Python script.
However, py2exe does not seem to create a binary from my .py script.
This is what I have done:
I create a setup.py script:
"...
|
by: bartonc |
last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had...
|
by: Doug Morse |
last post by:
Hi,
I have an application that runs just fine using the standard Python distro
interpreter (v2.5.1 on WinXP) but throws the following exception when run as
an executable built with py2exe. My...
|
by: Alexnb |
last post by:
Hello
I am sure most of you are familiar with py2exe. I am having a bit of a
problem. See the program has a few pictures involved and the .ico it uses
for the windows. However, the pictures are...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |