diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-10 16:36:18 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-10 16:36:18 +0200 |
commit | 011ede87bdf36ab2e4cbb24825eb6425d9d72184 (patch) | |
tree | 6ae0687b863e8c789319c4e5e4a355f4435d3dde /Include/pydebug.h | |
parent | 2e74d253ec63d110af6e5a55bca22915fe374d60 (diff) | |
download | cpython-011ede87bdf36ab2e4cbb24825eb6425d9d72184.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 'Include/pydebug.h')
-rw-r--r-- | Include/pydebug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h index 97c2f8c425..8fe98183f9 100644 --- a/Include/pydebug.h +++ b/Include/pydebug.h @@ -20,6 +20,7 @@ PyAPI_DATA(int) Py_DontWriteBytecodeFlag; PyAPI_DATA(int) Py_NoUserSiteDirectory; PyAPI_DATA(int) Py_UnbufferedStdioFlag; PyAPI_DATA(int) Py_HashRandomizationFlag; +PyAPI_DATA(int) Py_IsolatedFlag; /* this is a wrapper around getenv() that pays attention to Py_IgnoreEnvironmentFlag. It should be used for getting variables like |