From 921cbd4be494dffa8e59902ac4b576b85e712ea9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 Oct 2019 22:28:40 +0200 Subject: Fix Python bindings on Mac --- bindings/python/lilv.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bindings') 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) -- cgit v1.2.1