Skip to content
Browse files
Auto save Python script file
  • Loading branch information
NathanW2 committed Jul 21, 2013
1 parent ed286eb commit d0d2511d13fe7506a0ff32d6e46c96fe05f43523
Showing with 8 additions and 1 deletion.
  1. +8 −1 python/console/
@@ -561,13 +561,20 @@ def runScriptCode(self):
if not self.isModified():
self.parent.pc.callWidgetMessageBarEditor(msgEditorBlank, 0, True)

if self.isModified() and not autoSave:
self.parent.pc.callWidgetMessageBarEditor(msgEditorUnsaved, 0, True)

if self.syntaxCheck(fromContextMenu=False):
if autoSave:
if autoSave and filename:

if autoSave and not filename:
# Create a new temp file if the file isn't already saved.
tmpFile = self.createTempFile()
filename = tmpFile"execfile(r'{0}')".format(filename))

def runSelectedCode(self):

0 comments on commit d0d2511

Please sign in to comment.