mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +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:
|
if not REPO_PATH:
|
||||||
script_path = Path(__file__)
|
script_path = Path(__file__)
|
||||||
print(f"REPO_PATH is not set, deducing it from {script_path.name} location...")
|
print(f"REPO_PATH is not set, deducing it from {script_path.name} location...")
|
||||||
repo_bonsai_path = script_path.parent.parent.parent
|
repo_bonsai_path = script_path.parent.parent
|
||||||
assert repo_bonsai_path.name == "bonsai"
|
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
|
REPO_PATH = repo_bonsai_path.parent.parent
|
||||||
|
|
||||||
print("-" * 10)
|
print("-" * 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user