diff options
author | David Robillard <d@drobilla.net> | 2019-10-22 22:28:40 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-22 22:29:25 +0200 |
commit | 921cbd4be494dffa8e59902ac4b576b85e712ea9 (patch) | |
tree | 6b6ac9b5441363a1ee188b8bc7a26ebf613f8726 /bindings | |
parent | 44bc89c877b4574822a023579597edbf03a84b41 (diff) | |
download | lilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.tar.gz lilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.tar.bz2 lilv-921cbd4be494dffa8e59902ac4b576b85e712ea9.zip |
Fix Python bindings on Mac
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/lilv.py | 7 |
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) |