I'm trying to make a simple iconified Python launcher for a shell script, and something I'm doing isn't working, despite having used py2app successfully before. The target Python program ("my_program_wrapper.py") consists of this:
import os import sys os.environ["PYTHONPATH"] = "" os.spawnv(os.P_NOWAIT, "/Users/nat/bin/my_program", ["my_program"]) I then run this: /path/to/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Python.framework/Versions/Current/lib/python2.7/site-packages/py2app-0.7.3-py2.7.egg/py2app/script_py2applet.py --make-setup my_program_wrapper.py which is fine, and gives me this for setup.py: #### from setuptools import setup APP = ['my_program_wrapper.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': False, 'iconfile': '/Users/nat/my_program.icns'} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) #### Then I run this: /path/to/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python setup.py py2app and that runs for a few seconds, prints a bunch of output, then crashes here: creating /Users/nat/Desktop/py2app_tmp/py2app_tmp/dist/phenix.app/Contents/Frameworks/Python.framework creating /Users/nat/Desktop/py2app_tmp/py2app_tmp/dist/phenix.app/Contents/Frameworks/Python.framework/Versions creating /Users/nat/Desktop/py2app_tmp/py2app_tmp/dist/phenix.app/Contents/Frameworks/Python.framework/Versions/Current creating /Users/nat/Desktop/py2app_tmp/py2app_tmp/dist/phenix.app/Contents/Frameworks/Python.framework/Versions/Current/Resources error: File exists It works fine if I use /usr/bin/python instead, but that isn't an option because this needs to be able to run on OS 10.4, which has Python 2.3 (which chokes on an import in py2app). Am I doing something wrong, or is this a bug? thanks, Nat _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG