update log path
This commit is contained in:
@@ -22,7 +22,7 @@ def get_app_root():
|
||||
app_path = sys.executable
|
||||
else:
|
||||
# 本地源码运行时,取当前脚本目录
|
||||
app_path = os.path.abspath(__file__)
|
||||
app_path = os.path.dirname(os.path.abspath(__file__))
|
||||
return os.path.dirname(app_path)
|
||||
|
||||
# 程序根目录(exe 同级)
|
||||
|
||||
Reference in New Issue
Block a user