Skip to content

Commit 72995c5

Browse files
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
(cherry picked from commit ca94677) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent 3218520 commit 72995c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Doc/library/site.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ Module contents
223223
.. versionadded:: 3.2
224224

225225

226+
.. _site-commandline:
227+
228+
Command Line Interface
229+
----------------------
230+
231+
.. program:: site
232+
226233
The :mod:`site` module also provides a way to get the user directories from the
227234
command line:
228235

@@ -231,8 +238,6 @@ command line:
231238
$ python3 -m site --user-site
232239
/home/user/.local/lib/python3.3/site-packages
233240
234-
.. program:: site
235-
236241
If it is called without arguments, it will print the contents of
237242
:data:`sys.path` on the standard output, followed by the value of
238243
:data:`USER_BASE` and whether the directory exists, then the same thing for

0 commit comments

Comments
 (0)