mirror of
https://github.com/woodchen-ink/dnspod-yxip.git
synced 2025-07-19 06:12:08 +08:00
编译
This commit is contained in:
parent
544ef2af63
commit
b78c62bd2d
@ -6,7 +6,7 @@ from loguru import logger
|
|||||||
# 加载YAML配置
|
# 加载YAML配置
|
||||||
def load_config() -> Dict:
|
def load_config() -> Dict:
|
||||||
"""从YAML文件加载配置"""
|
"""从YAML文件加载配置"""
|
||||||
yaml_files = ["config.yaml", "config.example.yaml"]
|
yaml_files = ["config.yaml"]
|
||||||
for yaml_file in yaml_files:
|
for yaml_file in yaml_files:
|
||||||
if os.path.exists(yaml_file):
|
if os.path.exists(yaml_file):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user