测试加载逻辑

This commit is contained in:
liuwei
2025-03-19 11:37:14 +08:00
parent 5d2e37439a
commit bd4c4ebe37
3 changed files with 3 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ class PluginInterface(ABC):
if os.path.exists(config_path):
with open(config_path, "r", encoding="utf-8") as f:
plugin_config = toml.load(f)
print(f"{config_path} 加载插件{self.name}配置:{plugin_config}")
self._config.update(plugin_config)
print(f"{config_path} 加载插件配置成功")
return True