mirror of
https://github.com/xzb23/mods_unified_management.git
synced 2026-11-24 18:25:26 +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
|
/mum_list
|
||||||
|
|
||||||
*.c
|
*.c
|
||||||
*.bat
|
*.bat
|
||||||
|
*.json
|
||||||
@@ -43,7 +43,7 @@ def get_config(config_name):
|
|||||||
exe_dir = os.path.dirname(os.path.abspath(sys.executable))
|
exe_dir = os.path.dirname(os.path.abspath(sys.executable))
|
||||||
else:
|
else:
|
||||||
exe_dir = os.path.dirname(os.path.abspath(__file__))
|
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):
|
if not os.path.exists(config_path):
|
||||||
return ""
|
return ""
|
||||||
elif not os.path.isfile(config_path):
|
elif not os.path.isfile(config_path):
|
||||||
|
|||||||
Reference in new issue
Block a user