Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Doc/library/site.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ directory rather than a file. No item is added to ``sys.path`` more than
once. Blank lines and lines beginning with ``#`` are skipped. Lines starting
with ``import`` (followed by space or tab) are executed.

.. note::

On Windows, a file whose name has the form :file:`._pth` is handled
differently; it is used exclusively by the Windows-only "embeddable
distribution" to provide a self-contained Python environment.

.. note::

An executable line in a :file:`.pth` file is run at every Python startup,
Expand Down Expand Up @@ -308,4 +314,3 @@ value greater than 2 if there is an error.

* :pep:`370` -- Per user site-packages directory
* :ref:`sys-path-init` -- The initialization of :data:`sys.path`.

Loading