mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 16:43:55 +08:00
update:初始化上传
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import argparse
|
||||
from core.utils.util import read_config
|
||||
|
||||
|
||||
def load_config():
|
||||
"""加载配置文件"""
|
||||
parser = argparse.ArgumentParser(description="Server configuration")
|
||||
parser.add_argument("--config_path", type=str, default="config.yaml")
|
||||
args = parser.parse_args()
|
||||
return read_config(args.config_path)
|
||||
Reference in New Issue
Block a user