MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / get_repo_path

Function get_repo_path

src/codegraphcontext/cli/simulator.py:18–22  ·  view source on GitHub ↗

Resolves and returns repository path as absolute path string.

(path: Optional[str])

Source from the content-addressed store, hash-verified

16
17
18def get_repo_path(path: Optional[str]) -> str:
19 """Resolves and returns repository path as absolute path string."""
20 if path is None:
21 return str(Path.cwd().resolve())
22 return str(Path(path).resolve())
23
24
25def load_cgc_credentials(context: Optional[str]):

Callers 4

simulate_metricsFunction · 0.85
simulate_runFunction · 0.85
simulate_compareFunction · 0.85
simulate_timelineFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected