From 7f7154eb284c1061d6ec21bf7efc13dac35988a1 Mon Sep 17 00:00:00 2001 From: xz Date: Fri, 6 Nov 2026 15:41:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20config=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- common.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1e48aec..eccb786 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ build /mum_list *.c -*.bat \ No newline at end of file +*.bat +*.json \ No newline at end of file diff --git a/common.py b/common.py index fa6097c..5692b70 100644 --- a/common.py +++ b/common.py @@ -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):