mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
dev_environment.py - fix REPO_PATH autodetection after 4a2411c05
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user