Skip to content

Commit

Permalink
Fixed parseurl with windows path
Browse files Browse the repository at this point in the history
Was making the drive letter the scheme.
  • Loading branch information
coordt committed May 5, 2024
1 parent 8061547 commit 9d14ae4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cookie_composer/templates/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
def identify_repo(url: str, local_path: Optional[Path] = None) -> Tuple[TemplateFormat, Locality]:
"""Identify the repo format and locality from the URL."""
parsed_url = urlparse(url)
locality = Locality.LOCAL if parsed_url.scheme in {"", "file"} else Locality.REMOTE
print(locality)
print(parsed_url.scheme)
locality = Locality.LOCAL if parsed_url.scheme in {"", "file", "a", "b", "c", "d"} else Locality.REMOTE

if url.endswith(".zip"):
return TemplateFormat.ZIP, locality

Expand Down

0 comments on commit 9d14ae4

Please sign in to comment.