summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'bindings')
-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)