properlly report plugin name

This commit is contained in:
Brian Coca 2017-05-30 09:33:33 -04:00
commit bc403934ef
2 changed files with 7 additions and 4 deletions

View file

@ -380,6 +380,7 @@ class PluginLoader:
# set extra info on the module, in case we want it later
setattr(obj, '_original_path', path)
setattr(obj, '_load_name', name)
return obj
def _display_plugin_load(self, class_name, name, searched_paths, path, found_in_cache=None, class_only=None):
@ -444,6 +445,7 @@ class PluginLoader:
# set extra info on the module, in case we want it later
setattr(obj, '_original_path', path)
setattr(obj, '_load_name', name)
yield obj
action_loader = PluginLoader(