Use exec file for python console

This commit is contained in:
Nathan Woodrow 2013-07-14 09:28:12 +10:00
parent 58afc99ec3
commit e394cfb4fd

View File

@ -567,9 +567,8 @@ class Editor(QsciScintilla):
if self.syntaxCheck(fromContextMenu=False):
if autoSave:
tmpFile = self.createTempFile()
self._runSubProcess(tmpFile, True)
else:
self._runSubProcess(filename)
filename = tmpFile
self.parent.pc.shell.runCommand("execfile(r'{0}')".format(filename))
def runSelectedCode(self):
cmd = self.selectedText()