MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / save_global_config

Function save_global_config

openkb/config.py:269–272  ·  view source on GitHub ↗

Save the global config to ~/.config/openkb/global.yaml.

(config: dict[str, Any])

Source from the content-addressed store, hash-verified

267
268
269def save_global_config(config: dict[str, Any]) -> None:
270 """Save the global config to ~/.config/openkb/global.yaml."""
271 with _with_global_config_lock():
272 _atomic_yaml_dump(GLOBAL_CONFIG_PATH, config)
273
274
275def register_kb(kb_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

_with_global_config_lockFunction · 0.85
_atomic_yaml_dumpFunction · 0.85

Tested by

no test coverage detected