PyDocs

Nav

Importing Modules

get_importer

pkgutil

function (source)
  • get_importer(path_item)
Retrieve a finder for the given path item

The returned finder is cached in sys.path_importer_cache
if it was newly created by a path hook.

The cache (or part of it) can be cleared manually if a
rescan of sys.path_hooks is necessary.
Changed in 3.3
  • 3.3: Updated to be based directly on importlib rather than relying on the package internal PEP 302 import emulation.
0 Examples
No examples for pkgutil/get_importer.
See Also
No see-alsos for pkgutil/get_importer
0 Notes
No notes for get_importer