PyMOTW: pkgutil
Originally posted
· 1 min read
The pkgutil
module provides a single function, extend_path()
, that is used to modify the search path for modules in a given package to include other directories in sys.path
. This is very useful for overriding installed versions of packages with development versions, or for combining OS-specific and shared modules into a single package namespace.