MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / _load_optional_config

Function _load_optional_config

nanoresearch/cli.py:221–228  ·  view source on GitHub ↗
(config_path: Path | None)

Source from the content-addressed store, hash-verified

219
220
221def _load_optional_config(config_path: Path | None) -> ResearchConfig:
222 try:
223 default_path = config_path or (Path.home() / ".nanoresearch" / "config.json")
224 if default_path.is_file() or config_path is not None:
225 return ResearchConfig.load(config_path)
226 except Exception:
227 pass
228 return ResearchConfig()
229
230
231def _resolve_skill_sources(config: ResearchConfig) -> tuple[list[Path], Path | None]:

Callers 1

skills_inspectFunction · 0.85

Calls 2

ResearchConfigClass · 0.90
loadMethod · 0.45

Tested by

no test coverage detected