Skip to content

Commit 2a14ffd

Browse files
committedAug 6, 2015
[processing]fixes for grass7
processAlgorithm method was actually not being called when running a grass7 algorithm
1 parent b7187ed commit 2a14ffd

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ def processAlgorithm(self, progress):
422422
if ProcessingConfig.getSetting(Grass7Utils.GRASS_LOG_COMMANDS):
423423
ProcessingLog.addToLog(ProcessingLog.LOG_INFO, loglines)
424424

425+
Grass7Utils.executeGrass7(commands, progress, outputCommands)
426+
425427
for out in self.outputs:
426428
if isinstance(out, OutputHTML):
427429
with open(self.getOutputFromName("rawoutput").value) as f:
@@ -511,14 +513,7 @@ def commandLineName(self):
511513
def checkBeforeOpeningParametersDialog(self):
512514
msg = Grass7Utils.checkGrass7IsInstalled()
513515
if msg is not None:
514-
html = self.tr(
515-
'<p>This algorithm requires GRASS GIS 7 to be run. '
516-
'Unfortunately, it seems that GRASS GIS 7 is not installed in '
517-
'your system, or it is not correctly configured to be used '
518-
'from QGIS</p>'
519-
'<p><a href="http://docs.qgis.org/testing/en/docs/user_manual/processing/3rdParty.html">Click here</a> '
520-
'to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>') # FIXME update URL or page
521-
return html
516+
return msg
522517

523518
def checkParameterValuesBeforeExecuting(self):
524519
name = self.commandLineName().replace('.', '_')[len('grass7:'):]

0 commit comments

Comments
 (0)
Please sign in to comment.