update log path

This commit is contained in:
2026-06-14 10:27:06 +08:00
parent 7f7760c1b6
commit 5d3cd0dba9

View File

@@ -22,7 +22,7 @@ def get_app_root():
app_path = sys.executable app_path = sys.executable
else: else:
# 本地源码运行时,取当前脚本目录 # 本地源码运行时,取当前脚本目录
app_path = os.path.abspath(__file__) app_path = os.path.dirname(os.path.abspath(__file__))
return os.path.dirname(app_path) return os.path.dirname(app_path)
# 程序根目录exe 同级) # 程序根目录exe 同级)