Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing]fixes for grass7
processAlgorithm method was actually not being called when running a grass7 algorithm
  • Loading branch information
volaya committed Aug 6, 2015
1 parent b7187ed commit 2a14ffd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -422,6 +422,8 @@ def processAlgorithm(self, progress):
if ProcessingConfig.getSetting(Grass7Utils.GRASS_LOG_COMMANDS):
ProcessingLog.addToLog(ProcessingLog.LOG_INFO, loglines)

Grass7Utils.executeGrass7(commands, progress, outputCommands)

for out in self.outputs:
if isinstance(out, OutputHTML):
with open(self.getOutputFromName("rawoutput").value) as f:
Expand Down Expand Up @@ -511,14 +513,7 @@ def commandLineName(self):
def checkBeforeOpeningParametersDialog(self):
msg = Grass7Utils.checkGrass7IsInstalled()
if msg is not None:
html = self.tr(
'<p>This algorithm requires GRASS GIS 7 to be run. '
'Unfortunately, it seems that GRASS GIS 7 is not installed in '
'your system, or it is not correctly configured to be used '
'from QGIS</p>'
'<p><a href="http://docs.qgis.org/testing/en/docs/user_manual/processing/3rdParty.html">Click here</a> '
'to know more about how to install and configure GRASS GIS 7 to be used with QGIS</p>') # FIXME update URL or page
return html
return msg

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

0 comments on commit 2a14ffd

Please sign in to comment.