Home
last modified time | relevance | path

Searched refs:path_hooks (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_importhooks.py144 self.path_hooks = sys.path_hooks[:]
151 sys.path_hooks[:] = self.path_hooks
224 sys.path_hooks.append(PathImporter)
237 sys.path_hooks.append(ImpWrapper)
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_path.py65 with util.import_state(path_hooks=[hook]):
75 with util.import_state(path_importer_cache={}, path_hooks=[],
90 with util.import_state(path=[path], path_hooks=[hook]):
111 path_hooks=new_path_hooks):
229 path_hooks=[Finder]):
247 path_hooks=[Finder]):
/external/python/cpython3/Python/
Dimport.c58 PyObject *v, *path_hooks = NULL; in _PyImportHooks_Init() local
76 path_hooks = PyList_New(0); in _PyImportHooks_Init()
77 if (path_hooks == NULL) in _PyImportHooks_Init()
79 err = PySys_SetObject("path_hooks", path_hooks); in _PyImportHooks_Init()
86 Py_DECREF(path_hooks); in _PyImportHooks_Init()
92 PyObject *path_hooks, *zimpimport; in _PyImportZip_Init() local
95 path_hooks = PySys_GetObject("path_hooks"); in _PyImportZip_Init()
96 if (path_hooks == NULL) { in _PyImportZip_Init()
123 err = PyList_Insert(path_hooks, 0, zipimporter); in _PyImportZip_Init()
962 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument
[all …]
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py113 return id(sys.path_hooks), sys.path_hooks, sys.path_hooks[:]
115 sys.path_hooks = saved_hooks[1]
116 sys.path_hooks[:] = saved_hooks[2]
/external/python/cpython3/Lib/test/
Dtest_zipimport_support.py69 self.path_hooks = sys.path_hooks[:]
75 sys.path_hooks[:] = self.path_hooks
Dtest_threaded_import.py157 sys.path_hooks.insert(0, path_hook)
167 sys.path_hooks.remove(path_hook)
Dtest_zipimport.py64 self.path_hooks = sys.path_hooks[:]
71 sys.path_hooks[:] = self.path_hooks
/external/python/cpython2/Python/
Dimport.c202 PyObject *v, *path_hooks = NULL, *zimpimport; in _PyImportHooks_Init() local
227 path_hooks = PyList_New(0); in _PyImportHooks_Init()
228 if (path_hooks == NULL) in _PyImportHooks_Init()
230 err = PySys_SetObject("path_hooks", path_hooks); in _PyImportHooks_Init()
257 err = PyList_Append(path_hooks, zipimporter); in _PyImportHooks_Init()
266 Py_DECREF(path_hooks); in _PyImportHooks_Init()
1231 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument
1238 assert(PyList_Check(path_hooks)); in get_path_importer()
1241 nhooks = PyList_Size(path_hooks); in get_path_importer()
1254 PyObject *hook = PyList_GetItem(path_hooks, j); in get_path_importer()
[all …]
/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/importlib/
D_bootstrap_external.py1070 if sys.path_hooks is not None and not sys.path_hooks:
1072 for hook in sys.path_hooks:
1442 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
/external/python/cpython2/Lib/
Drunpy.py207 for hook in sys.path_hooks:
Dpkgutil.py382 for path_hook in sys.path_hooks:
/external/python/cpython3/Doc/library/
Dpkgutil.rst102 :data:`sys.path_hooks` is necessary.
133 finders (i.e. those on both sys.meta_path and sys.path_hooks).
Dimportlib.rst830 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is
856 Calls objects in :data:`sys.path_hooks` with the current working
905 A class method which returns a closure for use on :attr:`sys.path_hooks`.
1425 you create using a :term:`path entry hook` on :attr:`sys.path_hooks` which works
1448 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
Dsys.rst874 .. data:: path_hooks
886 paths that have been passed to :data:`sys.path_hooks` and the values are
888 finder is found on :data:`sys.path_hooks` then ``None`` is
/external/python/cpython3/Lib/test/test_importlib/
Dtest_namespace_pkgs.py48 kwargs.setdefault('path_hooks', sys.path_hooks)
/external/python/cpython3/Doc/reference/
Dimport.rst269 to :data:`sys.path_hooks` as described below.
630 ``__path__``, and :data:`sys.path_hooks` (described below) are
733 single: sys.path_hooks
748 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__``
786 over every callable in :data:`sys.path_hooks`. Each of the :term:`path entry
799 If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder`
807 hook` callables on :data:`sys.path_hooks`, then the following protocol is used
/external/python/cpython3/Lib/
Dpkgutil.py414 for path_hook in sys.path_hooks:
/external/python/cpython2/Doc/library/
Dpkgutil.rst90 :data:`sys.path_hooks` is necessary.
Dsys.rst709 .. data:: path_hooks
721 paths that have been passed to :data:`sys.path_hooks` and the values are
723 explicit finder is found on :data:`sys.path_hooks` then ``None`` is
Dimp.rst273 ``sys.path_hooks``. Instances have only one method:
/external/python/cpython2/Doc/c-api/
Dimport.rst177 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
/external/python/cpython3/Doc/c-api/
Dimport.rst212 dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
/external/python/cpython2/Doc/reference/
Dsimple_stmts.rst727 single: sys.path_hooks
734 define, though, is one that handles :data:`sys.path_hooks`,
747 finder cached then :data:`sys.path_hooks` is searched by calling each object in
/external/python/cpython3/Doc/whatsnew/
D3.3.rst721 this class was an implicit member of :attr:`sys.path_hooks`.
748 :attr:`sys.path_hooks` now store all of the meta path finders and path entry
764 can be found on :attr:`sys.path_hooks`. Since :class:`imp.NullImporter` is not
765 directly exposed on :attr:`sys.path_hooks` it could no longer be relied upon to
2380 * Because :attr:`sys.meta_path` and :attr:`sys.path_hooks` now have finders on

12