mirror of https://github.com/python/cpython.git
The site module documentation also described the Windows behaviour incorrectly.
This commit is contained in:
parent
f2b16f3eb4
commit
f0d02fbb9a
|
@ -16,12 +16,13 @@ search path.
|
||||||
It starts by constructing up to four directories from a head and a
|
It starts by constructing up to four directories from a head and a
|
||||||
tail part. For the head part, it uses \code{sys.prefix} and
|
tail part. For the head part, it uses \code{sys.prefix} and
|
||||||
\code{sys.exec_prefix}; empty heads are skipped. For
|
\code{sys.exec_prefix}; empty heads are skipped. For
|
||||||
the tail part, it uses the empty string (on Windows) or
|
the tail part, it uses the empty string and then
|
||||||
\file{lib/python\shortversion/site-packages} (on \UNIX{} and Macintosh)
|
\file{lib/site-packages} (on Windows) or
|
||||||
and then \file{lib/site-python}. For each of the distinct
|
\file{lib/python\shortversion/site-packages} and then
|
||||||
head-tail combinations, it sees if it refers to an existing directory,
|
\file{lib/site-python} (on \UNIX{} and Macintosh). For each of the
|
||||||
and if so, adds it to \code{sys.path} and also inspects the newly added
|
distinct head-tail combinations, it sees if it refers to an existing
|
||||||
path for configuration files.
|
directory, and if so, adds it to \code{sys.path} and also inspects
|
||||||
|
the newly added path for configuration files.
|
||||||
\indexii{site-python}{directory}
|
\indexii{site-python}{directory}
|
||||||
\indexii{site-packages}{directory}
|
\indexii{site-packages}{directory}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue