summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-08-01 02:34:37 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-08-01 02:34:37 (GMT)
commit231007fe142975ee5e468929af5ed69705e7547e (patch)
tree36bd8a5902b73565d4490df32c93e733281fb923 /Lib/idlelib/ScriptBinding.py
parent9a82bd45cde8d41092b2ee8294acb9bd45a53807 (diff)
downloadcpython-231007fe142975ee5e468929af5ed69705e7547e.zip
cpython-231007fe142975ee5e468929af5ed69705e7547e.tar.gz
cpython-231007fe142975ee5e468929af5ed69705e7547e.tar.bz2
Issue #21192: Idle Editor. When a file is run, put its name in the restart bar.
Do not print false prompts. Original patch by Adnan Umer.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r--Lib/idlelib/ScriptBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index e71ddf4..d700525 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -142,7 +142,7 @@ class ScriptBinding:
return 'break'
interp = self.shell.interp
if PyShell.use_subprocess:
- interp.restart_subprocess(with_cwd=False)
+ interp.restart_subprocess(with_cwd=False, filename=code.co_filename)
dirname = os.path.dirname(filename)
# XXX Too often this discards arguments the user just set...
interp.runcommand("""if 1: