summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-19 18:09:26 (GMT)
committerGeorg Brandl <georg@python.org>2007-05-19 18:09:26 (GMT)
commit8d76cca0265aaa23d2a59af3bfb1bcd133c0a59d (patch)
tree970fc4d989b08bac7fafe3a280ffa6d1b94828ec /Lib/site.py
parentd410b320ec46ced2be067fe4297d81405280dcf4 (diff)
downloadcpython-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.py6
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