Home
last modified time | relevance | path

Searched refs:path_hook (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_path_hook.py12 def path_hook(self): member in PathHookTest
13 return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader,
18 self.assertTrue(hasattr(self.path_hook()(mapping['.root']),
23 self.assertTrue(hasattr(self.path_hook()(mapping['.root']),
28 self.assertTrue(hasattr(self.path_hook()(''), 'find_spec'))
32 self.assertTrue(hasattr(self.path_hook()(''), 'find_module'))
/external/python/cpython3/Lib/test/
Dtest_threaded_import.py162 def path_hook(path): function
165 sys.path_hooks.insert(0, path_hook)
175 sys.path_hooks.remove(path_hook)
/external/python/cpython3/Tools/importbench/
Dimportbench.py72 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader))
108 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader))
142 sys.path_hooks.append(importlib.machinery.FileFinder.path_hook(loader))
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_path_hook.py15 return self.machinery.FileFinder.path_hook(
/external/python/cpython2/Lib/
Dpkgutil.py380 for path_hook in sys.path_hooks:
382 importer = path_hook(path_item)
/external/python/cpython3/Lib/
Dpkgutil.py417 for path_hook in sys.path_hooks:
419 importer = path_hook(path_item)
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py103 self.machinery.FileFinder.path_hook(
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py1436 def path_hook(cls, *loader_details): member in FileFinder
1561 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
/external/python/cpython3/Doc/library/
Dimportlib.rst1139 .. classmethod:: path_hook(\*loader_details)
1705 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
/external/python/cpython3/Doc/
Dglossary.rst845 A callable on the :data:`sys.path_hook` list which returns a :term:`path