MCPcopy Index your code
hub / github.com/RustPython/RustPython / _install

Function _install

Lib/importlib/_bootstrap_external.py:1557–1562  ·  view source on GitHub ↗

Install the path-based import components.

(_bootstrap_module)

Source from the content-addressed store, hash-verified

1555
1556
1557def _install(_bootstrap_module):
1558 """Install the path-based import components."""
1559 _set_bootstrap_module(_bootstrap_module)
1560 supported_loaders = _get_supported_file_loaders()
1561 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
1562 sys.meta_path.append(PathFinder)

Callers

nothing calls this directly

Calls 5

_set_bootstrap_moduleFunction · 0.70
extendMethod · 0.45
path_hookMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected