Skip to content

Commit 32363dc

Browse files
committed
fixes #841
1 parent 8b728d9 commit 32363dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def exec_code(interpreter, args):
202202
spec = importlib.util.spec_from_loader("__console__", loader=None)
203203
mod = importlib.util.module_from_spec(spec)
204204
sys.modules["__console__"] = mod
205-
interpreter.locals = mod.__dict__
205+
interpreter.locals.update(mod.__dict__)
206206
interpreter.locals["__file__"] = args[0]
207207
interpreter.runsource(source, args[0], "exec")
208208
sys.argv = old_argv

0 commit comments

Comments
 (0)