diff options
Diffstat (limited to 'bindings/test')
-rw-r--r-- | bindings/test/python/test_api.py | 9 |
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): |