MCPcopy
hub / github.com/beetbox/beets / load_plugins

Function load_plugins

beets/plugins.py:463–475  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

461
462
463def 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
478def find_plugins() -> Iterable[BeetsPlugin]:

Callers

nothing calls this directly

Calls 4

get_plugin_namesFunction · 0.85
sendFunction · 0.85
joinMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected