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":