Created
July 15, 2014 14:50
-
-
Save fish2000/3f7460775b7cc27d21f0 to your computer and use it in GitHub Desktop.
Embedded PyObjC app bundle internal sys.path leapfrog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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