MCPcopy Index your code
hub / github.com/openai/plugins / resolve_path

Function resolve_path

plugins/ngs-analysis/scripts/ngs_planner_utils.py:27–33  ·  view source on GitHub ↗
(raw: str | None, base: Path)

Source from the content-addressed store, hash-verified

25
26
27def resolve_path(raw: str | None, base: Path) -> Path | None:
28 if not raw:
29 return None
30 path = Path(raw).expanduser()
31 if not path.is_absolute():
32 path = base / path
33 return path.resolve()
34
35
36def write_tsv(path: Path, rows: list[dict[str, Any]], fieldnames: list[str]) -> None:

Callers 6

optional_existing_pathFunction · 0.90
validate_inputsFunction · 0.90
validate_inputsFunction · 0.90
validate_inputsFunction · 0.90
validate_inputsFunction · 0.90
maybe_pathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected