Fix reloading

pull/11305/head
coletdjnz 2 months ago
parent 413ae7693b
commit cb9e38a797
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

@ -9,6 +9,7 @@ IN_CLI = ContextVar('IN_CLI', default=False)
# `False`=force, `None`=disabled, `True`=enabled
LAZY_EXTRACTORS = ContextVar('LAZY_EXTRACTORS', default=False)
# `...`=search default plugin dirs
plugin_dirs = ContextVar('plugin_dirs', default=(..., ))
plugin_ies = ContextVar('plugin_ies', default={})
plugin_overrides = ContextVar('plugin_overrides', default=defaultdict(list))

@ -289,7 +289,7 @@ def load_plugins(plugin_type: PluginType):
# Add the classes into the global plugin lookup for that type
plugin_config.plugin_destination.set(regular_classes)
# We want to prepend to the main lookup for that type
plugin_config.destination.set(merge_dicts(plugin_config.destination.get(), regular_classes))
plugin_config.destination.set(merge_dicts(regular_classes, plugin_config.destination.get()))
return regular_classes

Loading…
Cancel
Save