Hello!
When I launch a Wx script on OSX the menu bar at the top (with the
Apple icon on the left) shows "Python" and I'd like it to show the
name of my script or a name I set.
I know the proper way would be to make a .app but both py2app and
pyinstaller fail on my script (using Apple Python and Apple Pyobjc 64
bits on Lion).
I then created a .app with AppleScript (do shell script "python ~/
myapp.py") and went to modify the info.plist :
<key>CFBundleExecutable</key>
<string>My app name i wished</string>
Unfortunately it doesn't work. I have a popup stating "Press 'run' to
run this script" and when i do that the name is not shown anyway.
Any idea?
PS: I found prior question but it didn't help in my case:
https://groups.google.com/group/wxpython-users/browse_thread/thread/6d739ea0447e23a6/ceb35d4646aa2125?hl=fr&lnk=gst&q=menubar+name#ceb35d4646aa2125
I know the proper way would be to make a .app
yup.
but both py2app and
pyinstaller fail on my script (using Apple Python and Apple Pyobjc 64
bits on Lion).
Have you tried using py2app in "Alias" mode:
python setup.py python -A
it puts in links to your code, rather than trying to create a complete independent environment -- and it often more robust in the face of various hard-to-bundle packages.
There is also another tool that I can't remember the name of that is designed to wrap scripts in various languages with app bundles -- some googling should turn it up,
-Chris
ยทยทยท
On 11/21/11 8:31 AM, francois wrote:
I then created a .app with AppleScript (do shell script "python ~/
myapp.py") and went to modify the info.plist :
<key>CFBundleExecutable</key>
<string>My app name i wished</string>
Unfortunately it doesn't work. I have a popup stating "Press 'run' to
run this script" and when i do that the name is not shown anyway.
Any idea?
PS: I found prior question but it didn't help in my case:
https://groups.google.com/group/wxpython-users/browse_thread/thread/6d739ea0447e23a6/ceb35d4646aa2125?hl=fr&lnk=gst&q=menubar+name#ceb35d4646aa2125
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov