Re:Pyship: Static Python for desktop apps
by burrows on Saturday March 19, 2016 @10:01PM
(#11321430)
Are you modifying sys.path() to load the dependencies that are shipped with the app; or some other technique?
[ Parent
| on HN ]
Re:Pyship: Static Python for desktop apps
by makecheck on Sunday March 20, 2016 @02:07PM
(#11323915)
I use the location of the script to find the absolute path to the bundle (MacOS folder), from which I can work backwards using ".." to find other things like bundled libraries.
In my case some of the libraries are also compiled so I have a starter script that sets DYLD_LIBRARY_PATH, PYTHONPATH, etc. and runs a 2nd script that can then successfully import whatever is required.