summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsys.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-15 16:08:10 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-15 16:08:10 (GMT)
commit54ed2d32f9e53a3d90b282472070e6151a10adaf (patch)
treee79c7fd71d5f295dcda0077690f10c8be3448fbe /Doc/lib/libsys.tex
parent754140e16395e385b8f7470386df61942e7fe404 (diff)
downloadcpython-54ed2d32f9e53a3d90b282472070e6151a10adaf.zip
cpython-54ed2d32f9e53a3d90b282472070e6151a10adaf.tar.gz
cpython-54ed2d32f9e53a3d90b282472070e6151a10adaf.tar.bz2
Clarify that the description of sys.path[0] is only valid upon program
start-up.
Diffstat (limited to 'Doc/lib/libsys.tex')
-rw-r--r--Doc/lib/libsys.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index 76aaefd..4aa2d4a 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -282,10 +282,11 @@ else:
\begin{datadesc}{path}
\indexiii{module}{search}{path}
A list of strings that specifies the search path for modules.
- Initialized from the environment variable \envvar{PYTHONPATH}, or an
+ Initialized from the environment variable \envvar{PYTHONPATH}, plus an
installation-dependent default.
- The first item of this list, \code{path[0]}, is the directory
+ As initialized upon program startup,
+ the first item of this list, \code{path[0]}, is the directory
containing the script that was used to invoke the Python
interpreter. If the script directory is not available (e.g. if the
interpreter is invoked interactively or if the script is read from
@@ -293,6 +294,8 @@ else:
Python to search modules in the current directory first. Notice
that the script directory is inserted \emph{before} the entries
inserted as a result of \envvar{PYTHONPATH}.
+
+ A program is free to modify this list for its own purposes.
\end{datadesc}
\begin{datadesc}{platform}