Persist package name for plugins loaded from entry point
This allows later deinstallation even if module and package name differ.
This commit is contained in:
parent
e96dcadc70
commit
5e54f3a523
1 changed files with 2 additions and 1 deletions
|
|
@ -542,10 +542,11 @@ class PluginManager(object):
|
|||
url=module_pkginfo.home_page,
|
||||
license=module_pkginfo.license
|
||||
))
|
||||
package_name = module_pkginfo.name
|
||||
|
||||
plugin = self._import_plugin_from_module(key, **kwargs)
|
||||
if plugin:
|
||||
plugin.origin = ("entry_point", group, module_name)
|
||||
plugin.origin = ("entry_point", group, module_name, package_name)
|
||||
plugin.enabled = False
|
||||
result[key] = plugin
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue