Frage

The app that I built using py2app has a program argument which is the file name. For e.g a text file name that has to be opened using TextEdit. I did not cross check for other type of arguments. This app works fine in 10.8.5 OSx version but fails to launch in 10.9 OSx version. Few observations that may be useful to identify the fix - If we look at the open files in the Activity Monitor of this process then wee see that '_boot_.py' file is not opened in 10.9 but is open in 10.8.5 - If we directly run the python program (in a terminal) by navigating to the MacOS folder and providing the argument then the program runs fine.

My setup.py:

from setuptools import setup

APP = ['myapp.py']
DATA_FILES = []
INCLUDE=['objc']
OPTIONS = {'iconfile':'cc.icns','includes':INCLUDE,'argv_emulation':True,'plist':{'CFBundleShortVersionString':'4.0.3','LSBackgroundOnly':True},}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)
War es hilfreich?

Lösung

This should be fixed in the most recent version of py2app

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top