Lines Matching refs:fullname
176 def find_module(self, fullname, path=None):
178 subname = fullname.split(".")[-1]
179 if subname != fullname and self.path is None:
189 return ImpLoader(fullname, file, filename, etc)
237 def __init__(self, fullname, file, filename, etc):
240 self.fullname = fullname
243 def load_module(self, fullname):
246 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
265 def _fix_name(self, fullname):
266 if fullname is None:
267 fullname = self.fullname
268 elif fullname != self.fullname:
270 "module %s" % (self.fullname, fullname))
271 return fullname
273 def is_package(self, fullname):
274 fullname = self._fix_name(fullname)
277 def get_code(self, fullname=None):
278 fullname = self._fix_name(fullname)
282 source = self.get_source(fullname)
294 def get_source(self, fullname=None):
295 fullname = self._fix_name(fullname)
317 def get_filename(self, fullname=None):
318 fullname = self._fix_name(fullname)
400 def iter_importers(fullname=""):
403 If fullname contains a '.', the importers will be for the package
404 containing fullname, otherwise they will be importers for sys.meta_path,
424 if fullname.startswith('.'):
426 if '.' in fullname:
428 pkg = '.'.join(fullname.split('.')[:-1])
438 if '.' not in fullname:
461 fullname = module.__name__
463 fullname = module_or_name
464 return find_loader(fullname)
466 def find_loader(fullname):
467 """Find a PEP 302 "loader" object for fullname
469 If fullname contains dots, path must be the containing package's __path__.
474 for importer in iter_importers(fullname):
475 loader = importer.find_module(fullname)