Skip to content

Commit e394cfb

Browse files
committed
Use exec file for python console
1 parent 58afc99 commit e394cfb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/console/console_editor.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,8 @@ def runScriptCode(self):
567567
if self.syntaxCheck(fromContextMenu=False):
568568
if autoSave:
569569
tmpFile = self.createTempFile()
570-
self._runSubProcess(tmpFile, True)
571-
else:
572-
self._runSubProcess(filename)
570+
filename = tmpFile
571+
self.parent.pc.shell.runCommand("execfile(r'{0}')".format(filename))
573572

574573
def runSelectedCode(self):
575574
cmd = self.selectedText()

0 commit comments

Comments
 (0)