Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15ea3a6

Browse files
authored
bpo-32699: Improves doc for .pth files in presense of a ._pth file (#5399)
1 parent f11b460 commit 15ea3a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/using/windows.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ installation directory. So, if you had installed Python to
721721
:file:`C:\\Python\\Lib\\site-packages\\`.
722722

723723
To completely override :data:`sys.path`, create a ``._pth`` file with the same
724-
name as the DLL (``python36._pth``) or the executable (``python._pth``) and
724+
name as the DLL (``python37._pth``) or the executable (``python._pth``) and
725725
specify one line for each path to add to :data:`sys.path`. The file based on the
726726
DLL name overrides the one based on the executable, which allows paths to be
727727
restricted for any program loading the runtime if desired.
@@ -734,7 +734,7 @@ Import statements other than to ``site`` are not permitted, and arbitrary code
734734
cannot be specified.
735735

736736
Note that ``.pth`` files (without leading underscore) will be processed normally
737-
by the :mod:`site` module.
737+
by the :mod:`site` module when ``import site`` has been specified.
738738

739739
When no ``._pth`` file is found, this is how :data:`sys.path` is populated on
740740
Windows:
@@ -796,7 +796,7 @@ following advice will prevent conflicts with other installations:
796796
environment variables, and also ignore :mod:`site` unless ``import site`` is
797797
listed.
798798

799-
* If you are loading :file:`python3.dll` or :file:`python36.dll` in your own
799+
* If you are loading :file:`python3.dll` or :file:`python37.dll` in your own
800800
executable, explicitly call :c:func:`Py_SetPath` or (at least)
801801
:c:func:`Py_SetProgramName` before :c:func:`Py_Initialize`.
802802

@@ -930,7 +930,7 @@ directly accessed by end-users.
930930
When extracted, the embedded distribution is (almost) fully isolated from the
931931
user's system, including environment variables, system registry settings, and
932932
installed packages. The standard library is included as pre-compiled and
933-
optimized ``.pyc`` files in a ZIP, and ``python3.dll``, ``python36.dll``,
933+
optimized ``.pyc`` files in a ZIP, and ``python3.dll``, ``python37.dll``,
934934
``python.exe`` and ``pythonw.exe`` are all provided. Tcl/tk (including all
935935
dependants, such as Idle), pip and the Python documentation are not included.
936936

0 commit comments

Comments
 (0)