MCPcopy
hub / github.com/blackboxo/CleanMyWechat / load_config_file

Function load_config_file

main.py:231–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230
231def load_config_file():
232 config = load_json(CONFIG_PATH, {"data_dir": [], "users": []})
233 config = ensure_config_defaults(config)
234 config = merge_detected_accounts(config)
235 try:
236 save_json(CONFIG_PATH, config)
237 except Exception:
238 logging.exception("写入配置默认值失败")
239 return config
240
241
242def merge_detected_accounts(config):

Callers 7

load_configMethod · 0.85
refresh_uiMethod · 0.85
start_previewMethod · 0.85
execute_deleteMethod · 0.85
justdoitMethod · 0.85

Calls 4

load_jsonFunction · 0.85
ensure_config_defaultsFunction · 0.85
merge_detected_accountsFunction · 0.85
save_jsonFunction · 0.85

Tested by

no test coverage detected