summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-05-06 22:41:46 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-05-06 22:41:46 (GMT)
commitaf748c3ab8f4274a01630bc5dd95ede7db5f115b (patch)
treee37e8b4349d0d92d5e4ad6e50cf611c454ec6028 /Doc/using
parent323c40d48c4c1661a18336af16c59bc279fda571 (diff)
downloadcpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.zip
cpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.tar.gz
cpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.tar.bz2
Implemented PEP 370
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst35
1 files changed, 34 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 355e9ed..a6ab7ad 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -21,7 +21,7 @@ Command line
When invoking Python, you may specify any of these options::
- python [-dEiOQStuUvxX3?] [-c command | -m module-name | script | - ] [args]
+ python [-dEiOQsStuUvxX3?] [-c command | -m module-name | script | - ] [args]
The most common use case is, of course, a simple invocation of a script::
@@ -240,6 +240,17 @@ Miscellaneous options
:pep:`238` -- Changing the division operator
+.. cmdoption:: -s
+
+ Don't add user site directory to sys.path
+
+ .. versionadded:: 2.6
+
+ .. seealso::
+
+ :pep:`370` -- Per user site-packages directory
+
+
.. cmdoption:: -S
Disable the import of the module :mod:`site` and the site-dependent
@@ -471,6 +482,28 @@ These environment variables influence Python's behavior.
.. versionadded:: 2.6
+.. envvar:: PYTHONNOUSERSITE
+
+ If this is set, Python won't add the user site directory to sys.path
+
+ .. versionadded:: 2.6
+
+ .. seealso::
+
+ :pep:`370` -- Per user site-packages directory
+
+
+.. envvar:: PYTHONUSERBASE
+
+ Sets the base directory for the user site directory
+
+ .. versionadded:: 2.6
+
+ .. seealso::
+
+ :pep:`370` -- Per user site-packages directory
+
+
.. envvar:: PYTHONEXECUTABLE
If this environment variable is set, ``sys.argv[0]`` will be set to its