Searched refs:path_hook (Results 1 – 10 of 10) sorted by relevance
12 def path_hook(self): member in PathHookTest13 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'))
162 def path_hook(path): function165 sys.path_hooks.insert(0, path_hook)175 sys.path_hooks.remove(path_hook)
72 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))
15 return self.machinery.FileFinder.path_hook(
380 for path_hook in sys.path_hooks:382 importer = path_hook(path_item)
418 for path_hook in sys.path_hooks:420 importer = path_hook(path_item)
103 self.machinery.FileFinder.path_hook(
1518 def path_hook(cls, *loader_details): member in FileFinder1636 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
1181 .. classmethod:: path_hook(\*loader_details)1753 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
896 A callable on the :data:`sys.path_hook` list which returns a :term:`path