summaryrefslogtreecommitdiff
path: root/Misc/python.man
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-08-10 16:36:18 +0200
committerChristian Heimes <christian@cheimes.de>2013-08-10 16:36:18 +0200
commitad73a9cf97770023665a1bb1c6390a3c99478139 (patch)
treeb04a3a8762fe6a99ae6c57743ebcfca6d71fe2bd /Misc/python.man
parent562d9cbfe9b11b5bd23810b4ee8a111a8c9aa5b8 (diff)
downloadcpython-git-ad73a9cf97770023665a1bb1c6390a3c99478139.tar.gz
Issue #16400: Add command line option for isolated mode.
-I Run Python in isolated mode. This also implies -E and -s. In isolated mode sys.path contains neither the script’s directory nor the user’s site-packages directory. All PYTHON* environment variables are ignored, too. Further restrictions may be imposed to prevent the user from injecting malicious code.
Diffstat (limited to 'Misc/python.man')
-rw-r--r--Misc/python.man14
1 files changed, 12 insertions, 2 deletions
diff --git a/Misc/python.man b/Misc/python.man
index bcb3ec8723..52aedee5bf 100644
--- a/Misc/python.man
+++ b/Misc/python.man
@@ -26,11 +26,14 @@ python \- an interpreted, interactive, object-oriented programming language
.B \-i
]
[
-.B \-m
-.I module-name
+.B \-I
]
.br
[
+.B \-m
+.I module-name
+]
+[
.B \-q
]
[
@@ -139,6 +142,13 @@ command. It does not read the $PYTHONSTARTUP file. This can be
useful to inspect global variables or a stack trace when a script
raises an exception.
.TP
+.B \-I
+Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-S\fP. In
+isolated mode sys.path contains neither the script’s directory nor the user’s
+site-packages directory. All PYTHON* environment variables are ignored, too.
+Further restrictions may be imposed to prevent the user from injecting
+malicious code.
+.TP
.BI "\-m " module-name
Searches
.I sys.path