MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / merge_dict

Method merge_dict

src/astroprint/software.py:340–345  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

338 config = None
339
340 def merge_dict(a,b):
341 for key in b:
342 if isinstance(b[key], dict):
343 merge_dict(a[key], b[key])
344 else:
345 a[key] = b[key]
346
347 with open(os.path.join(self._infoDir,'software.yaml'), "r") as f:
348 config = yaml.safe_load(f)

Callers

nothing calls this directly

Calls 1

merge_dictFunction · 0.85

Tested by

no test coverage detected