pkgutil.extend_path()
pkgutil.extend_path() is a Python function in the Pkgutil Module category. Extends the search path for a package (from __path__). The syntax is pkgutil.extend_path(path, name). Returns: Extended path list. A typical example: from pkgutil import extend_path
__path__ = extend_path(__path__, __name__). A close sibling is pkgutil.walk_packages(), which yields (module_finder, name, ispkg) for all submodules in a package. A close sibling is pkgutil.iter_importers(), which yields all registered importers. More about this category: Package utilities — get_importer, iter_importers, walk_packages, extend_path. Related Pkgutil Module entries: pkgutil.walk_packages(), pkgutil.iter_importers(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try pkgutil.extend_path() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.