From 01ffe23e6955741819b2c8a5bf57b27e5e39f6e0 Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Wed, 8 Jan 2020 00:55:56 +0100 Subject: [PATCH] Mention "site-packages" directory explictly --- Doc/tutorial/modules.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 6c2e19faf4b..f6250291c88 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -191,18 +191,14 @@ named :file:`spam.py` in a list of directories given by the variable file is specified). * :envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the 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:: On file systems which support symlinks, the directory containing the input script is calculated after the symlink is followed. In other words the 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 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