Lines Matching full:path
20 .. function:: extend_path(path, name)
22 Extend the search path for the modules which comprise a package. Intended
28 For each directory on :data:`sys.path` that has a subdirectory that matches the
38 :file:`\*.pkg` file are added to the path, regardless of whether they exist
41 If the input path is not a list (as is the case for frozen packages) it is
42 returned unchanged. The input path is not modified; an extended copy is
45 It is assumed that :data:`sys.path` is a sequence. Items of :data:`sys.path`
47 items on :data:`sys.path` that cause errors when used as filenames may cause
48 this function to raise an exception (in line with :func:`os.path.isdir`
58 searches the current :data:`sys.path`, plus any modules that are frozen or
99 newly created by a path hook.
145 .. function:: iter_modules(path=None, prefix='')
147 Yields :class:`ModuleInfo` for all submodules on *path*, or, if
148 *path* is ``None``, all top-level modules on :data:`sys.path`.
150 *path* should be either ``None`` or a list of paths to look for modules in.
166 .. function:: walk_packages(path=None, prefix='', onerror=None)
169 *path*, or, if *path* is ``None``, all accessible modules.
171 *path* should be either ``None`` or a list of paths to look for modules in.
176 the given *path*, in order to access the ``__path__`` attribute to find
213 filename, using ``/`` as the path separator. The parent directory name
222 d = os.path.dirname(sys.modules[package].__file__)
223 data = open(os.path.join(d, resource), 'rb').read()