From 4e29a5a37b037846fcfdf9f2b1cff234a8955c91 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sun, 16 Feb 2025 16:58:07 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E7=A7=81=E6=9C=89=E5=8C=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=B7=AF=E5=BE=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/settings.py b/config/settings.py index d1f5a984..a1e23ab7 100644 --- a/config/settings.py +++ b/config/settings.py @@ -7,8 +7,8 @@ from core.utils.util import read_config, get_project_dir def get_config_file(): default_config_file = "config.yaml" # 判断是否存在私有的配置文件 - if os.path.exists(get_project_dir() + "." + default_config_file): - default_config_file = "." + default_config_file + if os.path.exists(get_project_dir() + "data/." + default_config_file): + default_config_file = "data/." + default_config_file return default_config_file