导入文件夹下多个插件,以 `_` 开头的插件不会被导入! 参数: plugin_dir: 文件夹路径
(*plugin_dir: str)
| 44 | |
| 45 | |
| 46 | def load_plugins(*plugin_dir: str) -> set[Plugin]: |
| 47 | """导入文件夹下多个插件,以 `_` 开头的插件不会被导入! |
| 48 | |
| 49 | 参数: |
| 50 | plugin_dir: 文件夹路径 |
| 51 | """ |
| 52 | manager = PluginManager(search_path=plugin_dir) |
| 53 | _managers.append(manager) |
| 54 | return manager.load_all_plugins() |
| 55 | |
| 56 | |
| 57 | def load_all_plugins( |
no test coverage detected