python - Terminal says "PyObjCTools" doesn't exist when it does -
i attempting build python application on osx 10.10, have used macports install dependencies , have used pycharm write application. when run pycharm works fine, when try run build script, when comes py2app part tells me directory ".../pyobjc/pyobjctools" isn't there, can navigate in finder , it's there. have idea problem be? i've been running around in circles week now.
if it's access pyobjctools functionality want, should import python way, example:
from pyobjctools import apphelper if need access actual files, it's possible force py2app add files using setup data_files options. example:
from setuptools import setup setup( app=['main.py'], name="app name", data_files=['/path/to/folder'], setup_requires=['py2app'], options=dict(py2app=dict(iconfile='en.lproj/icon.icns', includes=['includename'], packages=['packagename'] ) ) ) after rebuild files located inside cocoa bundle resources folder, can find using resourcepath() function:
nsbundle.mainbundle().resourcepath()
Comments
Post a Comment