Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #6101 from letmaik/patch-1
Fix tracking of imported modules (and plugin reloading)
  • Loading branch information
m-kuhn committed May 7, 2018
2 parents 3264b0b + 19592dc commit cb00869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utils.py
Expand Up @@ -664,7 +664,7 @@ def _import(name, globals={}, locals={}, fromlist=[], level=None):
mod = _builtin_import(name, globals, locals, fromlist, level)

if mod and '__file__' in mod.__dict__:
module_name = mod.__name__
module_name = mod.__name__ if fromlist else name
package_name = module_name.split('.')[0]
# check whether the module belongs to one of our plugins
if package_name in available_plugins:
Expand Down

0 comments on commit cb00869

Please sign in to comment.