Lines Matching refs:importer
138 def iter_importer_modules(importer, prefix=''): argument
139 if not hasattr(importer, 'iter_modules'):
141 return importer.iter_modules(prefix)
145 def _iter_file_finder_modules(importer, prefix=''): argument
146 if importer.path is None or not os.path.isdir(importer.path):
152 filenames = os.listdir(importer.path)
163 path = os.path.join(importer.path, fn)
372 def iter_zipimport_modules(importer, prefix=''): argument
373 dirlist = sorted(zipimport._zip_directory_cache[importer.archive])
374 _prefix = importer.prefix
416 importer = sys.path_importer_cache[path_item]
420 importer = path_hook(path_item)
421 sys.path_importer_cache.setdefault(path_item, importer)
426 importer = None
427 return importer