diff --git a/dbt_loom/manifests.py b/dbt_loom/manifests.py index 717e9e2..e047c9d 100644 --- a/dbt_loom/manifests.py +++ b/dbt_loom/manifests.py @@ -2,6 +2,7 @@ from io import BytesIO import json import gzip +import os from pathlib import Path from typing import Dict, List, Optional from urllib.parse import unquote, urlunparse @@ -128,7 +129,16 @@ def load_from_local_filesystem(config: FileReferenceConfig) -> Dict: if not config.path.path: raise InvalidManifestPath() - file_path = Path(unquote(config.path.path.lstrip("/"))) + if config.path.netloc: + file_path = Path(f"//{config.path.netloc}{config.path.path}") + else: + file_path = Path( + unquote( + config.path.path.lstrip("/") + if os.name == "nt" + else config.path.path + ) + ) if not file_path.exists(): raise LoomConfigurationError(f"The path `{file_path}` does not exist.") diff --git a/pyproject.toml b/pyproject.toml index fb2d781..e61b4a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [tool.poetry] name = "dbt-loom" -version = "0.7.2" +version = "0.7.3" description = "A dbt-core plugin to import public nodes in multi-project deployments." authors = ["Nicholas Yager "] readme = "README.md" packages = [{ include = "dbt_loom" }] [tool.commitizen] -version = "0.7.2" +version = "0.7.3" version_files = ["pyproject.toml:^version"] [tool.poetry.dependencies]