From ce097012c2ea8ff09db48621af90eeca09579f16 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 Oct 2019 00:00:01 +0200 Subject: Fix Python bindings on Windows --- bindings/test/python/test_api.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bindings/test') 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): -- cgit v1.2.1