Lines Matching full:site
1 :mod:`!site` --- Site-specific configuration hook
4 .. module:: site
5 :synopsis: Module responsible for site-specific configuration.
7 **Source code:** :source:`Lib/site.py`
18 Importing this module normally appends site-specific paths to the module search path
19 and adds :ref:`callables <site-consts>`, including :func:`help` to the built-in
22 or additions to the builtins. To explicitly trigger the usual site-specific
30 pair: site-packages; directory
35 :file:`lib/site-packages` (on Windows) or
36 :file:`lib/python{X.Y[t]}/site-packages` (on Unix and macOS). (The
45 Support for the "site-python" directory has been removed.
54 it is also checked for site-packages (sys.base_prefix and
57 the key "include-system-site-packages" set to anything other than "true"
59 searched for site-packages; otherwise they will.
97 a subdirectory :file:`/usr/local/lib/python{X.Y}/site-packages` with three
117 /usr/local/lib/pythonX.Y/site-packages/bar
118 /usr/local/lib/pythonX.Y/site-packages/foo
131 :mod:`sitecustomize`, which can perform arbitrary site-specific customizations.
132 It is typically created by a system administrator in the site-packages
148 :data:`~site.ENABLE_USER_SITE` is true. This file is intended to be created in the
149 user site-packages directory (see below), which is part of ``sys.path`` unless
158 .. currentmodule:: site
183 A list of prefixes for site-packages directories.
188 Flag showing the status of the user site-packages directory. ``True`` means
198 Path to the user site-packages for the running Python. Can be ``None`` if
200 :file:`~/.local/lib/python{X.Y}[t]/site-packages` for UNIX and non-framework
201 macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for macOS
202 framework builds, and :file:`{%APPDATA%}\\Python\\Python{XY}\\site-packages`
204 directory is a site directory, which means that :file:`.pth` files in it
210 Path to the base directory for the user site-packages. Can be ``None`` if
222 Adds all the standard site-specific directories to the module search
238 Return a list containing all global site-packages directories.
254 Return the path of the user-specific site-packages directory,
257 site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` should be
268 .. program:: site
270 The :mod:`site` module also provides a way to get the user directories from the
275 $ python -m site --user-site
276 /home/user/.local/lib/python3.11/site-packages
287 .. option:: --user-site
289 Print the path to the user site-packages directory.
291 If both options are given, user base and user site will be printed (always in
295 the user site-packages directory is enabled, ``1`` if it was disabled by the
301 * :pep:`370` -- Per user site-packages directory