MCPcopy
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / get_config_value

Function get_config_value

pysssss.py:272–283  ·  view source on GitHub ↗
(key, default=None, throw=False)

Source from the content-addressed store, hash-verified

270
271
272def get_config_value(key, default=None, throw=False):
273 split = key.split(".")
274 obj = get_extension_config()
275 for s in split:
276 if s in obj:
277 obj = obj[s]
278 else:
279 if throw:
280 raise KeyError("Configuration key missing: " + key)
281 else:
282 return default
283 return obj
284
285
286def is_inside_dir(root_dir, check_path):

Callers

nothing calls this directly

Calls 1

get_extension_configFunction · 0.85

Tested by

no test coverage detected