mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
9a82bd45cd
commit
231007fe14
3 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue