Skip to content

Commit cb00869

Browse files
authored
Merge pull request #6101 from letmaik/patch-1
Fix tracking of imported modules (and plugin reloading)
2 parents 3264b0b + 19592dc commit cb00869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def _import(name, globals={}, locals={}, fromlist=[], level=None):
664664
mod = _builtin_import(name, globals, locals, fromlist, level)
665665

666666
if mod and '__file__' in mod.__dict__:
667-
module_name = mod.__name__
667+
module_name = mod.__name__ if fromlist else name
668668
package_name = module_name.split('.')[0]
669669
# check whether the module belongs to one of our plugins
670670
if package_name in available_plugins:

0 commit comments

Comments
 (0)