Skip to content

Instantly share code, notes, and snippets.

@fish2000
Created July 15, 2014 14:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fish2000/3f7460775b7cc27d21f0 to your computer and use it in GitHub Desktop.
Save fish2000/3f7460775b7cc27d21f0 to your computer and use it in GitHub Desktop.
Embedded PyObjC app bundle internal sys.path leapfrog
# rather than hijacking PYTHONPATH in the .m loader, add the module directory now
sys.path.insert(0,
'%s/Contents/Resources/python' % abspath(
Foundation.NSBundle.mainBundle().bundlePath()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment