Move macOS library location fix to pyinstaller hook

This commit is contained in:
Philipp Wolfer
2019-11-06 11:32:21 +01:00
committed by Philipp Wolfer
parent 6cafb6f1ff
commit cb8c763ca1
3 changed files with 10 additions and 12 deletions

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