加载插件但不启用
(self, pluginName: str)
| 160 | raise Warning("未完全卸载", plugin.pluginName) |
| 161 | |
| 162 | def loadPlugin(self, pluginName: str) -> Plugin | None: |
| 163 | """加载插件但不启用""" |
| 164 | plugin: Plugin = PluginLoader.load(pluginName) |
| 165 | plugin.isLoaded = True |
| 166 | if plugin is None: |
| 167 | return None |
| 168 | else: |
| 169 | if plugin.LOAD is not None: |
| 170 | plugin.LOAD() |
| 171 | self.loadedPlugin[pluginName] = plugin |
| 172 | return plugin |
| 173 | |
| 174 | def readPlugin(self, pluginName: str): |
| 175 | """读取插件但不启用""" |