summaryrefslogtreecommitdiff
path: root/modutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'modutils.py')
-rw-r--r--modutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modutils.py b/modutils.py
index e339a70..2756841 100644
--- a/modutils.py
+++ b/modutils.py
@@ -667,8 +667,8 @@ def _module_file(modpath, path=None):
if 'pkgutil' in data and 'extend_path' in data:
# extend_path is called, search sys.path for module/packages
# of this name see pkgutil.extend_path documentation
- path = [join(p, modname) for p in sys.path
- if isdir(join(p, modname))]
+ path = [join(p, *imported) for p in sys.path
+ if isdir(join(p, *imported))]
else:
path = [mp_filename]
return mtype, mp_filename