diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-06 01:41:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 01:41:24 (GMT) |
commit | 329afe78c3bbc234492a53f7a4084d07e215a077 (patch) | |
tree | 281fa4038479d8d6e92bfa1da96ce18aca56a8f5 /Python | |
parent | 1303f8c927227b72d9ee9eae890be4692b4d4592 (diff) | |
download | cpython-329afe78c3bbc234492a53f7a4084d07e215a077.zip cpython-329afe78c3bbc234492a53f7a4084d07e215a077.tar.gz cpython-329afe78c3bbc234492a53f7a4084d07e215a077.tar.bz2 |
gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)
Fix tests failing with the PYTHONSAFEPATH=1 env var.
Enhance also -P help in Python usage (python --help).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/initconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index 265c7ca..a623973 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -49,7 +49,7 @@ static const char usage_2[] = "\ .pyc extension; also PYTHONOPTIMIZE=x\n\ -OO : do -O changes and also discard docstrings; add .opt-2 before\n\ .pyc extension\n\ --P : don't add sys.path[0]\n\ +-P : don't prepend a potentially unsafe path to sys.path\n\ -q : don't print version and copyright messages on interactive startup\n\ -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ -S : don't imply 'import site' on initialization\n\ |