File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ support.
25
25
from pkgutil import extend_path
26
26
__path__ = extend_path(__path__, __name__)
27
27
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
31
31
directories.
32
32
33
33
It also looks for :file: `\* .pkg ` files beginning where ``* `` matches the
Original file line number Diff line number Diff line change @@ -511,10 +511,10 @@ def extend_path(path, name):
511
511
from pkgutil import extend_path
512
512
__path__ = extend_path(__path__, __name__)
513
513
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.
518
518
519
519
It also looks for *.pkg files beginning where * matches the name
520
520
argument. This feature is similar to *.pth files (see site.py),
You can’t perform that action at this time.
0 commit comments