Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Feb 28, 2024
1 parent b0b3d2c commit 1fc22bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/resolve_robotics_uri_py/resolve_robotics_uri_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,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 netloc
uri_path = "" if parsed_uri.netloc == "" else f"{parsed_uri.netloc}/"
uri_path += parsed_uri.path
# Strip the URI scheme by keeping only the path prefixed with the optional netloc
uri_path = parsed_uri.netloc + parsed_uri.path

# Process file:/ separately from the other schemes
if parsed_uri.scheme == "file":
Expand Down

0 comments on commit 1fc22bd

Please sign in to comment.