[Python-checkins] bpo-38623: Doc: Add section for site module CLI. (GH-17858)

Miss Islington (bot) webhook-mailer at python.org
Tue Jan 7 03:04:39 EST 2020


https://github.com/python/cpython/commit/72995c5cdd7ad4af6252bbe129e8fc63f5006130
commit: 72995c5cdd7ad4af6252bbe129e8fc63f5006130
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-01-07T00:04:32-08:00
summary:

bpo-38623: Doc: Add section for site module CLI. (GH-17858)

(cherry picked from commit ca94677a6216e2d41b04574986ce49d31a0b329c)

Co-authored-by: Inada Naoki <songofacandy at gmail.com>

files:
M Doc/library/site.rst

diff --git a/Doc/library/site.rst b/Doc/library/site.rst
index 7974e20974f1d..6ec39cf58bd50 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -223,6 +223,13 @@ Module contents
    .. versionadded:: 3.2
 
 
+.. _site-commandline:
+
+Command Line Interface
+----------------------
+
+.. program:: site
+
 The :mod:`site` module also provides a way to get the user directories from the
 command line:
 
@@ -231,8 +238,6 @@ command line:
    $ python3 -m site --user-site
    /home/user/.local/lib/python3.3/site-packages
 
-.. program:: site
-
 If it is called without arguments, it will print the contents of
 :data:`sys.path` on the standard output, followed by the value of
 :data:`USER_BASE` and whether the directory exists, then the same thing for



More information about the Python-checkins mailing list