From 5fc241088bd38d9b04e650275629d75943387bf0 Mon Sep 17 00:00:00 2001 From: LibraHp_0928 <1941163264@qq.com> Date: Fri, 11 Oct 2024 20:19:41 +0800 Subject: [PATCH] update --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 46616a2..cb2b938 100644 --- a/main.py +++ b/main.py @@ -141,7 +141,7 @@ def log(message,type="info"): now = time.strftime("%Y-%m-%d %H:%M:%S") log_info_ref.current.value = f"[{now}] - {message}" # 写入日志到文件 - with open("log.txt", "a", encoding="utf-8") as f: + with open(f"{save_path}/log.txt", "a", encoding="utf-8") as f: f.write(f"[{now}] - {message}\n") if type == "success": log_info_ref.current.color = "green"