Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py2app compatibility for libload.py #6

Closed
viblo opened this issue Oct 4, 2013 · 1 comment
Closed

py2app compatibility for libload.py #6

viblo opened this issue Oct 4, 2013 · 1 comment

Comments

@viblo
Copy link
Owner

viblo commented Oct 4, 2013

From swiftcoder on July 07, 2008 23:04:50

When using py2app to pack executables on Mac OS X, all supporting libraries (including
libchipmunk.dylib) are placed inside the application bundle, in the 'Content/Frameworks' directory.

I would suggest a modification such as the following to libload.py to account for this case:

...

    if hasattr(sys, "frozen") or hasattr(sys, "importers") or hasattr(imp, "is_frozen") and 

imp.is_forzen("main"):
if 'site-packages.zip' in file:
path = os.path.join(os.path.dirname(os.getcwd()), 'Frameworks')
else:
path = os.path.dirname(os.path.abspath(sys.executable))

...

Original issue: http://code.google.com/p/pymunk/issues/detail?id=6

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on July 16, 2008 13:20:01

I have added your fix to svn (rev 142)

Status: Fixed
Owner: v...@viblo.se

@viblo viblo closed this as completed Oct 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant