diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-01 02:34:31 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-01 02:34:31 (GMT) |
commit | 8755d78e4fa867202a020624defa4e0e4b56afbb (patch) | |
tree | 2142f8bec7f5ce89a02d6e8efbe692b9d8da0012 /Lib/idlelib/ScriptBinding.py | |
parent | a872fec1ec24b5131920151cd6c4bbcb836bf92d (diff) | |
download | cpython-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.py | 2 |
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: |