MCPcopy Create free account
hub / github.com/TransluceAI/observatory / find_project_root

Function find_project_root

project/monitor/monitor/server_modal.py:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def 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
15REPO_BRANCH = "main"

Callers 1

server_modal.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected