MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / update_config

Function update_config

server/utils.py:264–269  ·  view source on GitHub ↗
(config_update)

Source from the content-addressed store, hash-verified

262 return json.load(f)
263
264def update_config(config_update):
265 config = get_config()
266 config.update(config_update)
267 with open(CONFIG_FILEPATH, "w") as f:
268 json.dump(config, f)
269 return config
270
271def set_config(config):
272 with open(CONFIG_FILEPATH, "w") as f:

Callers 1

api_update_configFunction · 0.90

Calls 1

get_configFunction · 0.85

Tested by

no test coverage detected