dev_environment.py - fix REPO_PATH autodetection after 4a2411c05

This commit is contained in:
Andrej730
2025-07-28 17:39:44 +05:00
parent 5166416c61
commit 38b594d159
+5 -2
View File
@@ -85,8 +85,11 @@ def main() -> None:
if not REPO_PATH:
script_path = Path(__file__)
print(f"REPO_PATH is not set, deducing it from {script_path.name} location...")
repo_bonsai_path = script_path.parent.parent.parent
assert repo_bonsai_path.name == "bonsai"
repo_bonsai_path = script_path.parent.parent
assert repo_bonsai_path.name == "bonsai", (
"Failed to deduce REPO_PATH from the script's location. "
f"'{repo_bonsai_path}' is expected to be 'bonsai' folder."
)
REPO_PATH = repo_bonsai_path.parent.parent
print("-" * 10)