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 8b728d9 commit bc1916bCopy full SHA for bc1916b
bpython/args.py
@@ -202,7 +202,7 @@ def exec_code(interpreter, args):
202
spec = importlib.util.spec_from_loader("__console__", loader=None)
203
mod = importlib.util.module_from_spec(spec)
204
sys.modules["__console__"] = mod
205
- interpreter.locals = mod.__dict__
+ interpreter.locals.update(mod.__dict__)
206
interpreter.locals["__file__"] = args[0]
207
interpreter.runsource(source, args[0], "exec")
208
sys.argv = old_argv
0 commit comments