From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 7 Jan 2020 08:04:43 +0000 (-0800) Subject: bpo-38623: Doc: Add section for site module CLI. (GH-17858) X-Git-Tag: v3.8.2rc1~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6b37589a05c63abec122d3a00785641a3bcd85a;p=thirdparty%2FPython%2Fcpython.git bpo-38623: Doc: Add section for site module CLI. (GH-17858) (cherry picked from commit ca94677a6216e2d41b04574986ce49d31a0b329c) Co-authored-by: Inada Naoki --- diff --git a/Doc/library/site.rst b/Doc/library/site.rst index e1ca160c107b..b424e1ba348d 100644 --- a/Doc/library/site.rst +++ b/Doc/library/site.rst @@ -236,6 +236,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: @@ -244,8 +251,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