diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2012-01-31 02:09:25 -0500 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2012-01-31 02:09:25 -0500 |
commit | b98000ab5bd3fcb3774666ce3bb127e71634c349 (patch) | |
tree | ba4ac2de0a8cc16677396afaf29671da4ee09ec7 /Lib/idlelib/ScriptBinding.py | |
parent | 1d8e6fd45e9ac970501fd1e05f606c554e5d86f0 (diff) | |
download | cpython-git-b98000ab5bd3fcb3774666ce3bb127e71634c349.tar.gz |
#13506 Add '' to path for interactive interpreter by adding with_cwd parameter
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index 4c6dc82e0f..01ac474658 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -146,10 +146,9 @@ class ScriptBinding: return 'break' if not self.tabnanny(filename): return 'break' - shell = self.shell - interp = shell.interp + interp = self.shell.interp if PyShell.use_subprocess: - shell.restart_shell() + interp.restart_subprocess(with_cwd=False) dirname = os.path.dirname(filename) # XXX Too often this discards arguments the user just set... interp.runcommand("""if 1: |