MCPcopy Index your code
hub / github.com/python/cpython / path_hook_for_FileFinder

Method path_hook_for_FileFinder

Lib/importlib/_bootstrap_external.py:1444–1448  ·  view source on GitHub ↗

Path hook for importlib.machinery.FileFinder.

(path)

Source from the content-addressed store, hash-verified

1442
1443 """
1444 def path_hook_for_FileFinder(path):
1445 """Path hook for importlib.machinery.FileFinder."""
1446 if not _path_isdir(path):
1447 raise ImportError('only directories are supported', path=path)
1448 return cls(path, *loader_details)
1449
1450 return path_hook_for_FileFinder
1451

Callers

nothing calls this directly

Calls 2

_path_isdirFunction · 0.85
clsClass · 0.50

Tested by

no test coverage detected