Skip to content

Commit 239e93d

Browse files
committed
run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482)
1 parent 8aded86 commit 239e93d

File tree

2 files changed

+1117
-1095
lines changed

2 files changed

+1117
-1095
lines changed

python/plugins/processing/algs/gdal/gdalcalc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def groupId(self):
176176
return 'rastermiscellaneous'
177177

178178
def commandName(self):
179-
return 'gdal_calc'
179+
return 'gdal_calc' if isWindows() else 'gdal_calc.py'
180180

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

0 commit comments

Comments
 (0)