ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
340 stars 36 forks source link

Access Python interpreter bundled with app #501

Open awelex opened 1 year ago

awelex commented 1 year ago

My bundled app needs to launch an additional process to execute a python script in. I'd like to use the bundled python interpreter for that, which I assume is the executable in Contents/MacOS/python. However, when launching it I get the following error:

dyld[61741]: Library not loaded: @loader_path/../../../../Python Referenced from: <0BC32E4C-2CD2-3E0F-979D-31F2F517E67A> /Users/aw/src/dist/gui.app/Contents/MacOS/python Reason: tried: '/Users/aw/src/dist/gui.app/Contents/MacOS/../../../../Python' (no such file), '/usr/local/lib/Python' (no such file), '/usr/lib/Python' (no such file, not in dyld cache) zsh: abort gui.app/Contents/MacOS/python