mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Use exec file for python console
This commit is contained in:
parent
58afc99ec3
commit
e394cfb4fd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user