Skip to content

Commit b268acb

Browse files
Use __main__.__dict__ for globals as well as locals when running ptpython
Thanks: Peter Holloway (@facingBackwards)
1 parent 1b72e1f commit b268acb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ptpython/entry_points/run_ptpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def configure(repl):
6969
history_filename=os.path.join(config_dir, 'history'),
7070
configure=configure,
7171
locals=__main__.__dict__,
72+
globals=__main__.__dict__,
7273
startup_paths=startup_paths,
7374
title='Python REPL (ptpython)')
7475

0 commit comments

Comments
 (0)