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.
This commit is contained in:
Terry Jan Reedy 2015-07-31 22:34:37 -04:00
parent 9a82bd45cd
commit 231007fe14
3 changed files with 8 additions and 8 deletions

View file

@ -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: