##// END OF EJS Templates
Don't find importable non-modules in shim
Min RK -
Show More
@@ -29,10 +29,13 b' class ShimImporter(object):'
29 if fullname.startswith(self.src + '.'):
29 if fullname.startswith(self.src + '.'):
30 mirror_name = self._mirror_name(fullname)
30 mirror_name = self._mirror_name(fullname)
31 try:
31 try:
32 __import__(mirror_name)
32 mod = import_item(mirror_name)
33 except ImportError:
33 except ImportError:
34 return
34 return
35 else:
35 else:
36 if not isinstance(mod, types.ModuleType):
37 # not a module
38 return None
36 return self
39 return self
37
40
38 def load_module(self, fullname):
41 def load_module(self, fullname):
General Comments 0
You need to be logged in to leave comments. Login now