From 9514cc453c40b6d17c5175fb8fe701d0662444b1 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 20 Jan 2021 08:19:30 +0100 Subject: pyGHDL/lsp: adjust quoting for Windows --- pyGHDL/lsp/lsp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyGHDL') diff --git a/pyGHDL/lsp/lsp.py b/pyGHDL/lsp/lsp.py index b3d413e4c..79ab39ce8 100644 --- a/pyGHDL/lsp/lsp.py +++ b/pyGHDL/lsp/lsp.py @@ -50,7 +50,8 @@ def path_from_uri(uri): def path_to_uri(path): # Convert path to file uri (add html like head part) if is_windows: - return "file:///" + quote(path.replace("\\", "/")) + # Do not quote ':' (nor '/'). + return "file:///" + quote(path.replace("\\", "/"), "/:") else: return "file://" + quote(path) -- cgit v1.2.3