Skip to content

Commit ca94677

Browse files
authored
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
1 parent f4800b8 commit ca94677

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
@@ -236,6 +236,13 @@ Module contents
236236
.. versionadded:: 3.2
237237

238238

239+
.. _site-commandline:
240+
241+
Command Line Interface
242+
----------------------
243+
244+
.. program:: site
245+
239246
The :mod:`site` module also provides a way to get the user directories from the
240247
command line:
241248

@@ -244,8 +251,6 @@ command line:
244251
$ python3 -m site --user-site
245252
/home/user/.local/lib/python3.3/site-packages
246253
247-
.. program:: site
248-
249254
If it is called without arguments, it will print the contents of
250255
:data:`sys.path` on the standard output, followed by the value of
251256
:data:`USER_BASE` and whether the directory exists, then the same thing for

0 commit comments

Comments
 (0)