PyDocs

Nav

Importing Modules

PathFinder.find_spec

importlib.machinery

classmethod of PathFinder · Added in 3.4 (source)
  • PathFinder.find_spec(fullname, path=None, target=None)
Try to find a spec for 'fullname' on sys.path or 'path'.

The search is based on sys.path_hooks and sys.path_importer_cache.
Changed in 3.5
  • 3.5: If the current working directory – represented by an empty string – is no longer valid then None is returned but no value is cached in sys.path_importer_cache.
0 Examples
No examples for importlib.machinery/PathFinder.find_spec.
See Also
No see-alsos for importlib.machinery/PathFinder.find_spec
0 Notes
No notes for PathFinder.find_spec