Skip to content

Commit 9d14ae4

Browse files
committed
Fixed parseurl with windows path
Was making the drive letter the scheme.
1 parent 8061547 commit 9d14ae4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cookie_composer/templates/source.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
def identify_repo(url: str, local_path: Optional[Path] = None) -> Tuple[TemplateFormat, Locality]:
1515
"""Identify the repo format and locality from the URL."""
1616
parsed_url = urlparse(url)
17-
locality = Locality.LOCAL if parsed_url.scheme in {"", "file"} else Locality.REMOTE
18-
print(locality)
19-
print(parsed_url.scheme)
17+
locality = Locality.LOCAL if parsed_url.scheme in {"", "file", "a", "b", "c", "d"} else Locality.REMOTE
18+
2019
if url.endswith(".zip"):
2120
return TemplateFormat.ZIP, locality
2221

0 commit comments

Comments
 (0)