Skip to content

Commit 7970a0b

Browse files
Randy PembertonRandy Pemberton
authored andcommitted
Clarify sub directories used by pkgutil extend_path in Docs
1 parent ea2c001 commit 7970a0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/pkgutil.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ support.
2525
from pkgutil import extend_path
2626
__path__ = extend_path(__path__, __name__)
2727

28-
This will add to the package's ``__path__`` all subdirectories of directories
29-
on :data:`sys.path` named after the package. This is useful if one wants to
30-
distribute different parts of a single logical package as multiple
28+
For each directory on :data:`sys.path` that has a subdirectory that matches the
29+
package name, add the subdirectory to the package's :attr:`__path__`. This is useful
30+
if one wants to distribute different parts of a single logical package as multiple
3131
directories.
3232

3333
It also looks for :file:`\*.pkg` files beginning where ``*`` matches the

0 commit comments

Comments
 (0)