mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Do not touch sys.path when site is imported and python was started with -S.
Original patch by Carl Meyer, review by Brett Cannon, small doc editions by yours truly. Fixes #11591.
This commit is contained in:
parent
f59c7b2bdd
commit
c09fca67e7
6 changed files with 36 additions and 5 deletions
|
|
@ -169,7 +169,9 @@ Disable the import of the module
|
|||
.I site
|
||||
and the site-dependent manipulations of
|
||||
.I sys.path
|
||||
that it entails.
|
||||
that it entails. Also disable these manipulations if
|
||||
.I site
|
||||
is explicitly imported later.
|
||||
.TP
|
||||
.B \-u
|
||||
Force the binary I/O layers of stdin, stdout and stderr to be unbuffered.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue