Skip to content

Commit 360260a

Browse files
Randy PembertonRandy Pemberton
Randy Pemberton
authored and
Randy Pemberton
committed
Clarify sub directories for pkgutil extend_path in doc string
1 parent 7970a0b commit 360260a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/pkgutil.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ def extend_path(path, name):
511511
from pkgutil import extend_path
512512
__path__ = extend_path(__path__, __name__)
513513
514-
This will add to the package's __path__ all subdirectories of
515-
directories on sys.path named after the package. This is useful
516-
if one wants to distribute different parts of a single logical
517-
package as multiple directories.
514+
For each directory on sys.path that has a subdirectory that
515+
matches the package name, add the subdirectory to the package's
516+
__path__. This is useful if one wants to distribute different
517+
parts of a single logical package as multiple directories.
518518
519519
It also looks for *.pkg files beginning where * matches the name
520520
argument. This feature is similar to *.pth files (see site.py),

0 commit comments

Comments
 (0)