summaryrefslogtreecommitdiffstats
path: root/bindings/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-23 00:00:01 +0200
committerDavid Robillard <d@drobilla.net>2019-10-23 00:00:01 +0200
commitce097012c2ea8ff09db48621af90eeca09579f16 (patch)
treeb9ac0e0b51e1e4d42034ece0df0cbdab53724d0e /bindings/test
parent921cbd4be494dffa8e59902ac4b576b85e712ea9 (diff)
downloadlilv-ce097012c2ea8ff09db48621af90eeca09579f16.tar.gz
lilv-ce097012c2ea8ff09db48621af90eeca09579f16.tar.bz2
lilv-ce097012c2ea8ff09db48621af90eeca09579f16.zip
Fix Python bindings on Windows
Diffstat (limited to 'bindings/test')
-rw-r--r--bindings/test/python/test_api.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py
index fd49cc9..23345e8 100644
--- a/bindings/test/python/test_api.py
+++ b/bindings/test/python/test_api.py
@@ -14,10 +14,15 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import lilv
-import unittest
import os
+import sys
+import unittest
+
+from urllib.parse import urljoin
+from urllib.request import pathname2url
-location = "file://" + os.getcwd() + "/bindings/bindings_test_plugin.lv2/"
+path = os.path.abspath("bindings/bindings_test_plugin.lv2/")
+location = urljoin("file:", pathname2url(path) + "/")
class NodeTests(unittest.TestCase):