Skip to content

Commit

Permalink
run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 17, 2018
1 parent 8aded86 commit 239e93d
Show file tree
Hide file tree
Showing 2 changed files with 1,117 additions and 1,095 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/gdalcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def groupId(self):
return 'rastermiscellaneous'

def commandName(self):
return 'gdal_calc'
return 'gdal_calc' if isWindows() else 'gdal_calc.py'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
Expand Down

0 comments on commit 239e93d

Please sign in to comment.