-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 1.2, 2.0.4
-
Component/s: Plugins API
-
None
When Picard starts, it imports (with some magic around) every plugin – even if it is disabled. Thus the "body" of the module is executed.
This as several drawbacks:
1) Functions like register_*_action() will add even disabled plugins to the _*_actions lists, so the plugin has to be checked whether it is enabled every time (see plugins.ExtensionPoint.__inter__())
2) Setup code in the body of the plugin will be executed even if the plugin is not used.
Using the std-libs modulefinder module, it should not be to hard working around this.
- is a dependency of
-
PICARD-1404 Management of third-party plugins
-
- Closed
-
- is related to
-
PICARD-2228 Classical extras plugin modifies Picard config on startup
-
- Open
-
-
PICARD-1861 New plugin API and plugin management
-
- Closed
-