Home | History | Annotate | Download | only in python2.7

Lines Matching refs:top_module

102             top_module = sys.modules[parts[0]]
106 top_module = self._import_top_module(parts[0])
107 if not top_module:
114 return top_module
116 if not top_module.__dict__.get('__ispkg__'):
128 # In both cases, since len(parts) == 1, the top_module is also
131 return top_module
133 importer = top_module.__dict__.get('__importer__')
135 return importer._finish_import(top_module, parts[1:], fromlist)
138 if len(parts) == 2 and hasattr(top_module, parts[1]):
140 return getattr(top_module, parts[1])
142 return top_module
359 top_module = self._import_one(parent, top_name, top_fqname)
360 if not top_module:
364 return self._finish_import(top_module, parts[1:], fromlist)