diff options
author | Georg Brandl <georg@python.org> | 2007-05-19 18:09:26 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-05-19 18:09:26 (GMT) |
commit | 8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d (patch) | |
tree | 970fc4d989b08bac7fafe3a280ffa6d1b94828ec /Lib/site.py | |
parent | d410b320ec46ced2be067fe4297d81405280dcf4 (diff) | |
download | cpython-8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d.zip cpython-8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d.tar.gz cpython-8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d.tar.bz2 |
Fix docstring for add_package in site.py.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py index 5033f8a..0618550 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -118,8 +118,10 @@ def _init_pathinfo(): return d def addpackage(sitedir, name, known_paths): - """Add a new path to known_paths by combining sitedir and 'name' or execute - sitedir if it starts with 'import'""" + """Process a .pth file within the site-packages directory: + For each line in the file, either combine it with sitedir to a path + and add that to known_paths, or execute it if it starts with 'import '. + """ if known_paths is None: _init_pathinfo() reset = 1 |