Files
picard/scripts/pyinstaller/macos-library-path-hook.py
2019-11-06 17:03:41 +01:00

8 lines
244 B
Python

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', ''))