mirror of
https://github.com/python/cpython.git
synced 2025-11-26 05:13:02 +00:00
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
This commit is contained in:
parent
f4800b8ed3
commit
ca94677a62
1 changed files with 7 additions and 2 deletions
|
|
@ -236,6 +236,13 @@ Module contents
|
||||||
.. versionadded:: 3.2
|
.. 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
|
The :mod:`site` module also provides a way to get the user directories from the
|
||||||
command line:
|
command line:
|
||||||
|
|
||||||
|
|
@ -244,8 +251,6 @@ command line:
|
||||||
$ python3 -m site --user-site
|
$ python3 -m site --user-site
|
||||||
/home/user/.local/lib/python3.3/site-packages
|
/home/user/.local/lib/python3.3/site-packages
|
||||||
|
|
||||||
.. program:: site
|
|
||||||
|
|
||||||
If it is called without arguments, it will print the contents of
|
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:`sys.path` on the standard output, followed by the value of
|
||||||
:data:`USER_BASE` and whether the directory exists, then the same thing for
|
:data:`USER_BASE` and whether the directory exists, then the same thing for
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue