File tree 1 file changed +0
-4
lines changed
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -315,14 +315,12 @@ def updateHistory(self, command):
315
315
self .historyIndex = len (self .history )
316
316
317
317
def writeHistoryFile (self ):
318
- #hystoryFile = os.path.join(str(QDir.homePath()),".qgis","console_history.txt")
319
318
wH = open (_historyFile , 'w' )
320
319
for s in self .history :
321
320
wH .write (s + '\n ' )
322
321
wH .close ()
323
322
324
323
def readHistoryFile (self ):
325
- #hystoryFile = os.path.join(str(QDir.homePath()),".qgis","console_history.txt")
326
324
fileExist = QFile .exists (_historyFile )
327
325
if fileExist :
328
326
rH = open (_historyFile , 'r' )
@@ -505,11 +503,9 @@ def runCommand(self, cmd):
505
503
if cmd == '_save' :
506
504
self .writeHistoryFile ()
507
505
print QCoreApplication .translate ("PythonConsole" , "## History saved successfully ##" )
508
- #del self.buffer[-1]
509
506
elif cmd == '_clear' :
510
507
self .clearHistoryFile ()
511
508
print QCoreApplication .translate ("PythonConsole" , "## History cleared successfully ##" )
512
- #del self.buffer[-1]
513
509
output = sys .stdout .get_and_clean_data ()
514
510
if output :
515
511
self .append (output )
You can’t perform that action at this time.
0 commit comments