mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fixed:私有化配置路径bug
This commit is contained in:
parent
870a253912
commit
4e29a5a37b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue