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):
250 path_hooks=[Finder]):
268 path_hooks=[Finder]):
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py110 return id(sys.path_hooks), sys.path_hooks, sys.path_hooks[:]
112 sys.path_hooks = saved_hooks[1]
113 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.py165 sys.path_hooks.insert(0, path_hook)
175 sys.path_hooks.remove(path_hook)
Dtest_zipimport.py68 self.path_hooks = sys.path_hooks[:]
75 sys.path_hooks[:] = self.path_hooks
/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()
83 Py_DECREF(path_hooks); in _PyImportHooks_Init()
95 PyObject *path_hooks, *zimpimport; in _PyImportZip_Init() local
98 path_hooks = PySys_GetObject("path_hooks"); in _PyImportZip_Init()
99 if (path_hooks == NULL) { in _PyImportZip_Init()
126 err = PyList_Insert(path_hooks, 0, zipimporter); in _PyImportZip_Init()
1090 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument
[all …]
/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()
1253 get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, in get_path_importer() argument
1260 assert(PyList_Check(path_hooks)); in get_path_importer()
1263 nhooks = PyList_Size(path_hooks); in get_path_importer()
1276 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.py1193 if sys.path_hooks is not None and not sys.path_hooks:
1195 for hook in sys.path_hooks:
1561 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
/external/python/cpython2/Lib/
Drunpy.py207 for hook in sys.path_hooks:
Dpkgutil.py380 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.rst1061 :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is
1092 Calls objects in :data:`sys.path_hooks` with the current working
1141 A class method which returns a closure for use on :attr:`sys.path_hooks`.
1682 you create using a :term:`path entry hook` on :attr:`sys.path_hooks` which works
1705 sys.path_hooks.append(SpamPathEntryFinder.path_hook(loader_details))
Dsys.rst958 .. data:: path_hooks
970 paths that have been passed to :data:`sys.path_hooks` and the values are
972 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.rst268 to :data:`sys.path_hooks` as described below.
629 ``__path__``, and :data:`sys.path_hooks` (described below) are
759 single: sys.path_hooks
774 :data:`sys.path_hooks` and :data:`sys.path_importer_cache`. The ``__path__``
812 over every callable in :data:`sys.path_hooks`. Each of the :term:`path entry
825 If :data:`sys.path_hooks` iteration ends with no :term:`path entry finder`
833 hook` callables on :data:`sys.path_hooks`, then the following protocol is used
/external/python/cpython3/Lib/
Dpkgutil.py417 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.rst219 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