fix: 首次启动时无法创建配置文件

This commit is contained in:
Junyan Qin
2023-12-08 07:27:23 +00:00
parent 1b25a05122
commit 2d2fbd0a8b

View File

@@ -12,10 +12,6 @@ import asyncio
sys.path.append(".")
from pkg.utils.log import init_runtime_log_file, reset_logging
from pkg.config import manager as config_mgr
from pkg.config.impls import pymodule as pymodule_cfg
def check_file():
# 检查是否有banlist.py,如果没有就把banlist-template.py复制一份
@@ -58,6 +54,11 @@ def check_file():
# 初始化相关文件
check_file()
from pkg.utils.log import init_runtime_log_file, reset_logging
from pkg.config import manager as config_mgr
from pkg.config.impls import pymodule as pymodule_cfg
try:
import colorlog
except ImportError: