Mention "site-packages" directory explictly
This commit is contained in:
parent
4343609d5c
commit
01ffe23e69
|
@ -191,18 +191,14 @@ named :file:`spam.py` in a list of directories given by the variable
|
||||||
file is specified).
|
file is specified).
|
||||||
* :envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the
|
* :envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the
|
||||||
shell variable :envvar:`PATH`).
|
shell variable :envvar:`PATH`).
|
||||||
* The installation-dependent default.
|
* The installation-dependent default (by convention including a
|
||||||
|
``site-packages`` directory, handled by the :mod:`site` module).
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
On file systems which support symlinks, the directory containing the input
|
On file systems which support symlinks, the directory containing the input
|
||||||
script is calculated after the symlink is followed. In other words the
|
script is calculated after the symlink is followed. In other words the
|
||||||
directory containing the symlink is **not** added to the module search path.
|
directory containing the symlink is **not** added to the module search path.
|
||||||
|
|
||||||
.. note::
|
|
||||||
The :mod:`site` module is responsible for appending site-specific paths to
|
|
||||||
the module search path. It also provides a command line interface to print
|
|
||||||
a list of all module search paths (e.g. ``python -m site``).
|
|
||||||
|
|
||||||
After initialization, Python programs can modify :data:`sys.path`. The
|
After initialization, Python programs can modify :data:`sys.path`. The
|
||||||
directory containing the script being run is placed at the beginning of the
|
directory containing the script being run is placed at the beginning of the
|
||||||
search path, ahead of the standard library path. This means that scripts in that
|
search path, ahead of the standard library path. This means that scripts in that
|
||||||
|
|
Loading…
Reference in New Issue