Skip to content

Commit 0f72219

Browse files
committed
Respect isolated mode in the asyncio REPL
1 parent 9b7ea66 commit 0f72219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run(self):
9595

9696
console.write(banner)
9797

98-
if startup_path := os.getenv("PYTHONSTARTUP"):
98+
if not sys.flags.isolated and (startup_path := os.getenv("PYTHONSTARTUP")):
9999
sys.audit("cpython.run_startup", startup_path)
100100

101101
import tokenize

0 commit comments

Comments
 (0)