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.
1 parent cb66a00 commit f4c0d34Copy full SHA for f4c0d34
bpython/args.py
@@ -25,7 +25,6 @@
25
Module to handle command line argument parsing, for all front-ends.
26
"""
27
28
-import code
29
import importlib.util
30
import os
31
import sys
@@ -145,9 +144,8 @@ def callback(group):
145
144
raise SystemExit
146
147
if not ignore_stdin and not (sys.stdin.isatty() and sys.stdout.isatty()):
148
- interpreter = code.InteractiveInterpreter()
149
- interpreter.runsource(sys.stdin.read())
150
- raise SystemExit
+ # Just let Python handle this
+ os.execv(sys.executable, [sys.executable] + args)
151
152
config = Struct()
153
loadini(config, options.config)
0 commit comments