Skip to content

Commit ad18b7f

Browse files
committed
Makes path_from_uri return abs path when not file://
1 parent 97a8ee3 commit ad18b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortls/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def path_from_uri(uri):
2323
# Convert file uri to path (strip html like head part)
2424
if not uri.startswith("file://"):
25-
return uri
25+
return os.path.abspath(uri)
2626
if os.name == "nt":
2727
_, path = uri.split("file:///", 1)
2828
else:

0 commit comments

Comments
 (0)