@@ -15,13 +15,13 @@ \section{Standard Module \sectcode{site}}
1515tail part. For the head part, it uses \code {sys.prefix} and
1616\code {sys.exec_prefix}; empty heads are skipped. For
1717the tail part, it uses the empty string (on Mac or Windows) or it uses
18- first \file {lib/python\var {version}/packages} and then
18+ first \file {lib/python\var {version}/site- packages} and then
1919\file {lib/site-python} (on Unix). For each of the distinct head-tail
2020combinations, it sees if it refers to an existing directory, and if
2121so, adds to \code {sys.path}, and also inspected for path configuration
2222files.
2323\indexii {site-python}{directory}
24- \indexii {packages}{directory}
24+ \indexii {site- packages}{directory}
2525
2626A path configuration file is a file whose name has the form
2727\file {\var {package}.pth}; its contents are additional items (one
@@ -40,7 +40,7 @@ \section{Standard Module \sectcode{site}}
4040For example, suppose \code {sys.prefix} and \code {sys.exec_prefix} are
4141set to \file {/usr/local}. The Python 1.5 library is then installed in
4242\file {/usr/local/lib/python1.5}. Suppose this has a subdirectory
43- \file {/usr/local/python1.5/packages} with three subsubdirectories,
43+ \file {/usr/local/python1.5/site- packages} with three subsubdirectories,
4444\file {foo}, \file {bar} and \file {spam}, and two path configuration
4545files, \file {foo.pth} and \file {bar.pth}. Assume \file {foo.pth}
4646contains the following:
@@ -64,8 +64,8 @@ \section{Standard Module \sectcode{site}}
6464Then the following directories are added to sys.path, in this order:
6565
6666\bcode \begin {verbatim }
67- /usr/local/python1.5/packages/bar
68- /usr/local/python1.5/packages/foo
67+ /usr/local/python1.5/site- packages/bar
68+ /usr/local/python1.5/site- packages/foo
6969\end {verbatim }\ecode
7070
7171Note that \file {bletch} is omitted because it doesn't exist; the
0 commit comments