summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-08-01 02:34:31 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-08-01 02:34:31 (GMT)
commit8755d78e4fa867202a020624defa4e0e4b56afbb (patch)
tree2142f8bec7f5ce89a02d6e8efbe692b9d8da0012 /Lib/idlelib/ScriptBinding.py
parenta872fec1ec24b5131920151cd6c4bbcb836bf92d (diff)
downloadcpython-8755d78e4fa867202a020624defa4e0e4b56afbb.zip
cpython-8755d78e4fa867202a020624defa4e0e4b56afbb.tar.gz
cpython-8755d78e4fa867202a020624defa4e0e4b56afbb.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 ab2a3f2..fcaed25 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -147,7 +147,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: