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

Function _install

Lib/importlib/_bootstrap_external.py:1582–1587  ·  view source on GitHub ↗

Install the path-based import components.

(_bootstrap_module)

Source from the content-addressed store, hash-verified

1580
1581
1582def _install(_bootstrap_module):
1583 """Install the path-based import components."""
1584 _set_bootstrap_module(_bootstrap_module)
1585 supported_loaders = _get_supported_file_loaders()
1586 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
1587 sys.meta_path.append(PathFinder)

Callers

nothing calls this directly

Calls 5

_set_bootstrap_moduleFunction · 0.85
extendMethod · 0.45
path_hookMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…