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

Method _search_paths

Lib/importlib/metadata/__init__.py:1000–1005  ·  view source on GitHub ↗

Find metadata directories in paths heuristically.

(cls, name, paths)

Source from the content-addressed store, hash-verified

998
999 @classmethod
1000 def _search_paths(cls, name, paths):
1001 """Find metadata directories in paths heuristically."""
1002 prepared = Prepared(name)
1003 return itertools.chain.from_iterable(
1004 path.search(prepared) for path in map(FastPath, paths)
1005 )
1006
1007 @classmethod
1008 def invalidate_caches(cls) -> None:

Callers 1

find_distributionsMethod · 0.80

Calls 2

PreparedClass · 0.85
searchMethod · 0.45

Tested by

no test coverage detected