mirror of
https://github.com/xzb23/mods_unified_management.git
synced 2026-11-22 17:24:38 +08:00
fix: config文件路径错误
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -10,4 +10,5 @@ build
|
||||
/mum_list
|
||||
|
||||
*.c
|
||||
*.bat
|
||||
*.bat
|
||||
*.json
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user