mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31582: Created a new documentation section describing sys.path initialization (GH-31082)
This commit is contained in:
parent
fe010605f8
commit
c62b944dfc
10 changed files with 128 additions and 29 deletions
|
@ -1124,15 +1124,16 @@ always available.
|
|||
current directory first. Notice that the script directory is inserted *before*
|
||||
the entries inserted as a result of :envvar:`PYTHONPATH`.
|
||||
|
||||
The initialization of :data:`sys.path` is documented at :ref:`sys-path-init`.
|
||||
|
||||
A program is free to modify this list for its own purposes. Only strings
|
||||
and bytes should be added to :data:`sys.path`; all other data types are
|
||||
ignored during import.
|
||||
|
||||
|
||||
.. seealso::
|
||||
Module :mod:`site` This describes how to use .pth files to extend
|
||||
:data:`sys.path`.
|
||||
|
||||
* Module :mod:`site` This describes how to use .pth files to
|
||||
extend :data:`sys.path`.
|
||||
|
||||
.. data:: path_hooks
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue