summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-22 22:28:40 +0200
committerDavid Robillard <d@drobilla.net>2019-10-22 22:29:25 +0200
commit921cbd4be494dffa8e59902ac4b576b85e712ea9 (patch)
tree6b6ac9b5441363a1ee188b8bc7a26ebf613f8726
parent44bc89c877b4574822a023579597edbf03a84b41 (diff)
downloadlilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.tar.gz
lilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.tar.bz2
lilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.zip
Fix Python bindings on Mac
-rw-r--r--bindings/python/lilv.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bindings/python/lilv.py b/bindings/python/lilv.py
index 47179c5..e4e9f6a 100644
--- a/bindings/python/lilv.py
+++ b/bindings/python/lilv.py
@@ -22,7 +22,12 @@ class _LilvLib:
"""Object that represents the liblilv C library"""
def __init__(self):
- self.lib = CDLL("liblilv-0.so")
+ import sys
+
+ if sys.platform == "darwin":
+ self.lib = CDLL("liblilv-0.dylib")
+ else:
+ self.lib = CDLL("liblilv-0.so")
# Load lilv C library and define library global (which is populated below)