diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:58 +0000 |
commit | 302975348b0dbd4f0ddbb699df76ee05ffbefaaf (patch) | |
tree | 761e94c321db07dec57816b4ffdd36a13d67662d /ptpython/entry_points/run_ptipython.py | |
parent | Releasing debian version 3.0.16-2. (diff) | |
download | ptpython-302975348b0dbd4f0ddbb699df76ee05ffbefaaf.tar.xz ptpython-302975348b0dbd4f0ddbb699df76ee05ffbefaaf.zip |
Merging upstream version 3.0.19.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/entry_points/run_ptipython.py')
-rw-r--r-- | ptpython/entry_points/run_ptipython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptpython/entry_points/run_ptipython.py b/ptpython/entry_points/run_ptipython.py index 650633e..21d7063 100644 --- a/ptpython/entry_points/run_ptipython.py +++ b/ptpython/entry_points/run_ptipython.py @@ -31,7 +31,7 @@ def run(user_ns=None): path = a.args[0] with open(path, "rb") as f: code = compile(f.read(), path, "exec") - exec(code, {}) + exec(code, {"__name__": "__main__", "__file__": path}) else: enable_deprecation_warnings() |