We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys.flags.ignore_environment
1 parent 24aa562 commit 34ada1eCopy full SHA for 34ada1e
1 file changed
Lib/asyncio/__main__.py
@@ -99,7 +99,7 @@ def run(self):
99
100
console.write(banner)
101
102
- if not sys.flags.isolated and (startup_path := os.getenv("PYTHONSTARTUP")):
+ if not sys.flags.ignore_environment and (startup_path := os.getenv("PYTHONSTARTUP")):
103
sys.audit("cpython.run_startup", startup_path)
104
try:
105
import tokenize
@@ -200,7 +200,7 @@ def interrupt(self) -> None:
200
201
sys.audit("cpython.run_stdin")
202
203
- if os.getenv('PYTHON_BASIC_REPL'):
+ if not sys.flags.ignore_environment and os.getenv('PYTHON_BASIC_REPL'):
204
CAN_USE_PYREPL = False
205
else:
206
0 commit comments