Initialize the plugin system by loading all configured plugins. Performs one-time plugin discovery and instantiation, storing loaded plugin instances globally. Emits a pluginload event after successful initialization to notify other components.
()
| 461 | |
| 462 | |
| 463 | def load_plugins() -> None: |
| 464 | """Initialize the plugin system by loading all configured plugins. |
| 465 | |
| 466 | Performs one-time plugin discovery and instantiation, storing loaded plugin |
| 467 | instances globally. Emits a pluginload event after successful initialization |
| 468 | to notify other components. |
| 469 | """ |
| 470 | if not _instances: |
| 471 | names = get_plugin_names() |
| 472 | log.debug("Loading plugins: {}", ", ".join(sorted(names))) |
| 473 | _instances.extend(filter(None, map(_get_plugin, names))) |
| 474 | |
| 475 | send("pluginload") |
| 476 | |
| 477 | |
| 478 | def find_plugins() -> Iterable[BeetsPlugin]: |
nothing calls this directly
no test coverage detected