This commit is contained in:
2026-01-12 14:38:22 -08:00
parent b4d3ea3f94
commit 22aad691a8

View File

@@ -877,6 +877,8 @@ def main(argv: Optional[list[str]] = None) -> int:
print("\nSetup cancelled.")
return 0
# Expand variables like $HOME or %USERPROFILE% and ~
args.root = os.path.expandvars(args.root)
root = Path(args.root).expanduser().resolve()
# Python executable inside the repo venv (set when we create/find the venv)
venv_py = None
@@ -886,6 +888,7 @@ def main(argv: Optional[list[str]] = None) -> int:
except Exception:
pass
args.dest_name = os.path.expandvars(args.dest_name)
dest = root / args.dest_name
try: