fix: config文件路径错误

This commit is contained in:
xzb23 committed 2026-11-06 15:41:26 +08:00
1 parent f8e9b9419a
commit 7f7154eb28
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -10,4 +10,5 @@ build
/mum_list
*.c
*.bat
*.bat
*.json
+1 -1
View File
@@ -43,7 +43,7 @@ def get_config(config_name):
exe_dir = os.path.dirname(os.path.abspath(sys.executable))
else:
exe_dir = os.path.dirname(os.path.abspath(__file__))
config_path = formatting_path(os.path.dirname(exe_dir))+"config.json"
config_path = formatting_path(exe_dir)+"config.json"
if not os.path.exists(config_path):
return ""
elif not os.path.isfile(config_path):