fix: client cmd config bug

This commit is contained in:
Saboteur7
2024-07-08 18:57:27 +08:00
parent bac21426d3
commit 1f7afaba07
2 changed files with 6 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ class Plugin:
if not plugin_conf:
# 全局配置不存在,则获取插件目录下的配置
plugin_config_path = os.path.join(self.path, "config.json")
logger.debug(f"loading plugin config, plugin_config_path={plugin_config_path}, exist={os.path.exists(plugin_config_path)}")
if os.path.exists(plugin_config_path):
with open(plugin_config_path, "r", encoding="utf-8") as f:
plugin_conf = json.load(f)