Skip to content

Commit

Permalink
Merge pull request #104 from nicholasyager/fix/99_windows_paths
Browse files Browse the repository at this point in the history
Fix: Use Pathlib's built in URI converter
  • Loading branch information
nicholasyager authored Jan 4, 2025
2 parents 1950d01 + 76970bf commit a35098c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_loom/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def default_path(cls, v, values) -> ParseResult:
if bool(re.match(r"^[a-zA-Z][a-zA-Z0-9+.-]*://", v)):
return urlparse(v)

return urlparse("file://" + str(Path(v).absolute()))
return urlparse(Path(v).absolute().as_uri())


class ManifestReference(BaseModel):
Expand Down

0 comments on commit a35098c

Please sign in to comment.