fixed:私有化配置路径bug

This commit is contained in:
hrz
2025-02-16 16:58:07 +08:00
parent 870a253912
commit 4e29a5a37b
+2 -2
View File
@@ -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