From 78aef0b7bac1808d8313d3b47f042f8f1218afaf Mon Sep 17 00:00:00 2001 From: Robert Detjens Date: Fri, 15 Sep 2023 13:12:56 -0700 Subject: [PATCH] use relative imports for tosca_repositories symlinks Co-Authored-By: Adam Souzis --- unfurl/localenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unfurl/localenv.py b/unfurl/localenv.py index 369d84ae..08b22e5e 100644 --- a/unfurl/localenv.py +++ b/unfurl/localenv.py @@ -1397,7 +1397,7 @@ def link_repo(self, base_path: str, name: str, url: str, revision): target = repo_root / name if os.path.exists(target): os.unlink(target) - os.symlink(repo.working_dir, repo_root / name, True) + os.symlink(Path(repo.working_dir).relative_to(repo_root), repo_root / name, True) return repo.working_dir def map_value(self, val: Any, env_rules: Optional[dict]) -> Any: