Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixes #841
  • Loading branch information
ocurero committed Apr 17, 2021
commit 32363dc8bea1fd12997f314cb424bf72cbe1e599
2 changes: 1 addition & 1 deletion bpython/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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