Lines Matching full:fullname
173 def find_module(self, fullname, path=None): argument
175 subname = fullname.split(".")[-1]
176 if subname != fullname and self.path is None:
186 return ImpLoader(fullname, file, filename, etc)
234 def __init__(self, fullname, file, filename, etc): argument
237 self.fullname = fullname
240 def load_module(self, fullname): argument
243 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
263 def _fix_name(self, fullname): argument
264 if fullname is None:
265 fullname = self.fullname
266 elif fullname != self.fullname:
268 "module %s" % (self.fullname, fullname))
269 return fullname
271 def is_package(self, fullname): argument
272 fullname = self._fix_name(fullname)
275 def get_code(self, fullname=None): argument
276 fullname = self._fix_name(fullname)
280 source = self.get_source(fullname)
292 def get_source(self, fullname=None): argument
293 fullname = self._fix_name(fullname)
315 def get_filename(self, fullname=None): argument
316 fullname = self._fix_name(fullname)
398 def iter_importers(fullname=""): argument
401 If fullname contains a '.', the importers will be for the package
402 containing fullname, otherwise they will be importers for sys.meta_path,
422 if fullname.startswith('.'):
424 if '.' in fullname:
426 pkg = '.'.join(fullname.split('.')[:-1])
436 if '.' not in fullname:
459 fullname = module.__name__
461 fullname = module_or_name
462 return find_loader(fullname)
464 def find_loader(fullname): argument
465 """Find a PEP 302 "loader" object for fullname
467 If fullname contains dots, path must be the containing package's __path__.
472 for importer in iter_importers(fullname):
473 loader = importer.find_module(fullname)