Skip to content

Commit 10aa92f

Browse files
authored
Merge pull request #6960 from luipir/gdalcalc_avoid_escape_formula
[processing][gdal] Do not escape formula because it's not a path!
2 parents 5b20168 + 6150b7f commit 10aa92f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def getConsoleCommands(self):
106106
noData = unicode(noData)
107107

108108
arguments = []
109-
arguments.append('--calc')
110-
arguments.append('"' + formula + '"')
109+
arguments.append('--calc "{}"'.format(formula))
111110
arguments.append('--format')
112111
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))
113112
arguments.append('--type')

0 commit comments

Comments
 (0)