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

Method smart_detect_wechat_path

main.py:1767–1774  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1765 return ensure_config_defaults({"data_dir": data_dirs, "users": user_config})
1766
1767 def smart_detect_wechat_path(self):
1768 config = self.create_config_from_paths(find_all_wechat_paths())
1769 if not config:
1770 return False
1771 save_json(CONFIG_PATH, config)
1772 self.config_exists = True
1773 self.setSuccessinfo("已自动检测到微信数据目录,可以开始清理。")
1774 return True
1775
1776 def check_auto_clean_after_start(self):
1777 try:

Callers 1

detect_or_configureMethod · 0.95

Calls 4

find_all_wechat_pathsFunction · 0.90
save_jsonFunction · 0.85
setSuccessinfoMethod · 0.80

Tested by

no test coverage detected