完善日志系统
This commit is contained in:
@@ -40,7 +40,7 @@ def exist_config() -> bool:
|
||||
return config_path.exists()
|
||||
|
||||
def initConfig() -> bool:
|
||||
global miniQMTPath, account_no
|
||||
global miniQMTPath, account_no, log_level
|
||||
|
||||
# 获取配置文件路径
|
||||
config_path = get_config_path()
|
||||
@@ -49,6 +49,7 @@ def initConfig() -> bool:
|
||||
config.read(config_path, encoding='utf-8')
|
||||
miniQMTPath = config.get('config','miniQMTPath')
|
||||
account_no = config.get('config','account_no')
|
||||
log_level = config.get('config','log_level')
|
||||
|
||||
# 判断miniQMTPath是否为空,并且目录是否存在
|
||||
if not miniQMTPath or not Path(miniQMTPath).exists():
|
||||
|
||||
Reference in New Issue
Block a user