summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-01-13 18:32:40 (GMT)
committerGuido van Rossum <guido@python.org>1998-01-13 18:32:40 (GMT)
commit0d8fcb233eefba35edd9c32c9805098ab57aca7b (patch)
tree4f3588a948f97fc73cf727633963cddf2c12ada5 /Lib
parentbc5062f664a143f34312fffb5162c435da96af9e (diff)
downloadcpython-0d8fcb233eefba35edd9c32c9805098ab57aca7b.zip
cpython-0d8fcb233eefba35edd9c32c9805098ab57aca7b.tar.gz
cpython-0d8fcb233eefba35edd9c32c9805098ab57aca7b.tar.bz2
Update the doc string to emphasize non-Unix behavior earlier;
sys.prefix is no longer empty on any platform that I know of.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/site.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/Lib/site.py b/Lib/site.py
index aedcafa..876c0d1 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -10,9 +10,11 @@ somewhere near the top of their code. Because of the automatic
import, this is no longer necessary (but code that does it still
works).
-This will append site-specific paths to to the module search path. It
-starts with sys.prefix and sys.exec_prefix (if different) and appends
-lib/python<version>/site-packages as well as lib/site-python. The
+This will append site-specific paths to to the module search path. On
+Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
+appends lib/python<version>/site-packages as well as lib/site-python.
+On other platforms (mainly Mac and Windows), it uses just sys.prefix
+(and sys.exec_prefix, if different, but this is unlikely). The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.
@@ -53,10 +55,6 @@ named sitecustomize, which can perform arbitrary additional
site-specific customizations. If this import fails with an
ImportError exception, it is silently ignored.
-Note that for some non-Unix systems, sys.prefix and sys.exec_prefix
-are empty, and then the path manipulations are skipped; however the
-import of sitecustomize is still attempted.
-
"""
import sys, os