mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 02:40:03 +00:00
Move macOS library location fix to pyinstaller hook
This commit is contained in:
committed by
Philipp Wolfer
parent
6cafb6f1ff
commit
cb8c763ca1
7
scripts/pyinstaller/macos-library-path-hook.py
Normal file
7
scripts/pyinstaller/macos-library-path-hook.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
# On macOS ensure libraries such as libdiscid.dylib get loaded from app bundle
|
||||
os.environ['DYLD_FALLBACK_LIBRARY_PATH'] = '%s:%s' % (
|
||||
os.path.dirname(sys.executable), os.environ.get('DYLD_FALLBACK_LIBRARY_PATH', ''))
|
||||
Reference in New Issue
Block a user