summaryrefslogtreecommitdiff
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-07-31 22:35:15 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2015-07-31 22:35:15 -0400
commit99b80b507246af3c293a0aa8eeaac4788b703200 (patch)
tree597fe89977c64d12e1b188a47da93af0ef675041 /Lib/idlelib/ScriptBinding.py
parentd27d938675ec9eaf7c7e4d6ea1c65767611b5425 (diff)
parent26f667676f6ea44c8d3e5a41f345acfaeca30bc2 (diff)
downloadcpython-git-99b80b507246af3c293a0aa8eeaac4788b703200.tar.gz
Merge with 3.5
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 e71ddf49d3..d700525a73 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -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: