()
| 4 | |
| 5 | |
| 6 | def find_project_root() -> Path: |
| 7 | current_dir = Path(__file__).resolve().parent |
| 8 | while current_dir != current_dir.parent: |
| 9 | if (current_dir / ".root").exists(): |
| 10 | return current_dir |
| 11 | current_dir = current_dir.parent |
| 12 | raise RuntimeError("Could not find project root; no .root file found in parent directories") |
| 13 | |
| 14 | |
| 15 | REPO_BRANCH = "main" |