]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Jan 2020 08:04:32 +0000 (00:04 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 08:04:32 +0000 (00:04 -0800)
(cherry picked from commit ca94677a6216e2d41b04574986ce49d31a0b329c)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Doc/library/site.rst

index 7974e20974f1d22fd8647c77f8b407db00486947..6ec39cf58bd500c6667b0af804ad7856484518b4 100644 (file)
@@ -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