Skip to content

Commit

Permalink
Use exec file for python console
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 13, 2013
1 parent 58afc99 commit e394cfb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/console/console_editor.py
Expand Up @@ -567,9 +567,8 @@ def runScriptCode(self):
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()
Expand Down

0 comments on commit e394cfb

Please sign in to comment.