From 32fa670ed84594e487ca8d64218542f0058ceea4 Mon Sep 17 00:00:00 2001 From: diegoferigo Date: Wed, 28 Feb 2024 19:18:35 +0100 Subject: [PATCH] sq --- src/resolve_robotics_uri_py/resolve_robotics_uri_py.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolve_robotics_uri_py/resolve_robotics_uri_py.py b/src/resolve_robotics_uri_py/resolve_robotics_uri_py.py index e77a54d..b5e37a2 100644 --- a/src/resolve_robotics_uri_py/resolve_robotics_uri_py.py +++ b/src/resolve_robotics_uri_py/resolve_robotics_uri_py.py @@ -114,8 +114,8 @@ def resolve_robotics_uri(uri: str) -> pathlib.Path: msg = "resolve-robotics-uri-py: Passed URI '{}' use non-supported scheme '{}'" raise FileNotFoundError(msg.format(uri, parsed_uri.scheme)) - # Strip the URI scheme by keeping only the path prefixed with the optional netloc - uri_path = parsed_uri.netloc + parsed_uri.path + # Strip the scheme from the URI + uri_path = uri.replace(f"{parsed_uri.scheme}", "") # Process file:/ separately from the other schemes if parsed_uri.scheme == "file":