diff --git a/bpython/args.py b/bpython/args.py index 0a60c86e..429ffff4 100644 --- a/bpython/args.py +++ b/bpython/args.py @@ -202,7 +202,7 @@ def exec_code(interpreter, args): spec = importlib.util.spec_from_loader("__console__", loader=None) mod = importlib.util.module_from_spec(spec) sys.modules["__console__"] = mod - interpreter.locals = mod.__dict__ + interpreter.locals.update(mod.__dict__) interpreter.locals["__file__"] = args[0] interpreter.runsource(source, args[0], "exec") sys.argv = old_argv
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: