MCPcopy
hub / github.com/tickmao/Novel / _load_json

Function _load_json

scripts/source_inventory.py:32–36  ·  view source on GitHub ↗
(path: Path, default)

Source from the content-addressed store, hash-verified

30
31
32def _load_json(path: Path, default):
33 if not path.exists():
34 return deepcopy(default)
35 with open(path, "r", encoding="utf-8") as f:
36 return json.load(f)
37
38
39class SourceInventory:

Callers 6

__init__Method · 0.70
load_raw_sourcesMethod · 0.70
load_screened_sourcesMethod · 0.70
load_working_sourcesMethod · 0.70
prepare_metadataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected