Skip to content

Commit 0619094

Browse files
committed
darwin: check if running in bundle/dmg
According to a built picard dmg the dylib can't be found in ./Content/Frameworks/ This adds an extra check for ../Frameworks
1 parent c4b609e commit 0619094

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discid/libdiscid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def _find_library(name, version=0):
4040

4141
lib_file = None
4242

43+
# This seems to be necessary in a bundle/dmg
44+
if sys.platform == "darwin":
45+
lib_name = '../Frameworks/lib%s.%d.dylib' % (name, version)
46+
if os.path.isfile(lib_name):
47+
lib_file = lib_name
48+
4349
# force prefer current folder
4450
# for linux/UNIX-like and Windows
4551
if sys.platform in ["darwin", "cygwin"]:

0 commit comments

Comments
 (0)