Skip to content

Commit

Permalink
sq
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Feb 28, 2024
1 parent 9157e36 commit 32fa670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolve_robotics_uri_py/resolve_robotics_uri_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 32fa670

Please sign in to comment.