This commit is contained in:
HuangHai
2026-01-31 08:07:58 +08:00
parent cb6ddbb76d
commit a21676bacf
2 changed files with 54 additions and 62 deletions

View File

@@ -194,8 +194,8 @@ def setup_script_environment():
# 重置调试计数器
global _debug_counter
_debug_counter = 0
# 排除当前正在使用的日志文件
clear_directory(LOG_DIR, exclude_files=["T2_ChatMonitor.log", "WxUtil.log"])
# 清理所有日志和图片,确保新一轮运行有干净的环境
clear_directory(LOG_DIR)
clear_directory(OUTPUT_DIR)
def connect_device():