diff options
author | Christian Heimes <christian@cheimes.de> | 2008-05-06 22:41:46 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-05-06 22:41:46 (GMT) |
commit | af748c3ab8f4274a01630bc5dd95ede7db5f115b (patch) | |
tree | e37e8b4349d0d92d5e4ad6e50cf611c454ec6028 /Doc/library/site.rst | |
parent | 323c40d48c4c1661a18336af16c59bc279fda571 (diff) | |
download | cpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.zip cpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.tar.gz cpython-af748c3ab8f4274a01630bc5dd95ede7db5f115b.tar.bz2 |
Implemented PEP 370
Diffstat (limited to 'Doc/library/site.rst')
-rw-r--r-- | Doc/library/site.rst | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Doc/library/site.rst b/Doc/library/site.rst index 4e54900..ff70aff 100644 --- a/Doc/library/site.rst +++ b/Doc/library/site.rst @@ -85,3 +85,51 @@ Note that for some non-Unix systems, ``sys.prefix`` and ``sys.exec_prefix`` are empty, and the path manipulations are skipped; however the import of :mod:`sitecustomize` is still attempted. + +.. data:: PREFIXES + + A list of prefixes for site package directories + + .. versionadded:: 2.6 + + +.. data:: ENABLE_USER_SITE + + Flag showing the status of the user site directory. True means the + user site directory is enabled and added to sys.path. When the flag + is None the user site directory is disabled for security reasons. + + .. versionadded:: 2.6 + + +.. data:: USER_SITE + + Path to the user site directory for the current Python version or None + + .. versionadded:: 2.6 + + +.. data:: USER_BASE + + Path to the base directory for user site directories + + .. versionadded:: 2.6 + + +.. envvar:: PYTHONNOUSERSITE + + .. versionadded:: 2.6 + + +.. envvar:: PYTHONUSERBASE + + .. versionadded:: 2.6 + + +.. function:: addsitedir(sitedir, known_paths=None) + + Adds a directory to sys.path and processes its pth files. + + +XXX Update documentation +XXX document python -m site --user-base --user-site |