mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 09:03:54 +08:00
fixed:私有化配置路径bug
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ from core.utils.util import read_config, get_project_dir
|
|||||||
def get_config_file():
|
def get_config_file():
|
||||||
default_config_file = "config.yaml"
|
default_config_file = "config.yaml"
|
||||||
# 判断是否存在私有的配置文件
|
# 判断是否存在私有的配置文件
|
||||||
if os.path.exists(get_project_dir() + "." + default_config_file):
|
if os.path.exists(get_project_dir() + "data/." + default_config_file):
|
||||||
default_config_file = "." + default_config_file
|
default_config_file = "data/." + default_config_file
|
||||||
return default_config_file
|
return default_config_file
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user