MCPcopy
hub / github.com/OpenBMB/ChatDev / _resolve_yaml_path

Function _resolve_yaml_path

server/routes/execute_sync.py:42–50  ·  view source on GitHub ↗
(yaml_file: Union[str, Path])

Source from the content-addressed store, hash-verified

40
41
42def _resolve_yaml_path(yaml_file: Union[str, Path]) -> Path:
43 candidate = Path(yaml_file).expanduser()
44 if candidate.is_absolute():
45 return candidate
46 if candidate.exists():
47 return candidate
48 repo_root = Path(__file__).resolve().parents[2]
49 yaml_root = YAML_DIR if YAML_DIR.is_absolute() else (repo_root / YAML_DIR)
50 return (yaml_root / candidate).expanduser()
51
52
53def _build_task_input(

Callers 1

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected