Skip to content

Commit

Permalink
avoid escape formula because it's not a path!
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed May 9, 2018
1 parent 5b20168 commit 6150b7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/algs/gdal/gdalcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def getConsoleCommands(self):
noData = unicode(noData)

arguments = []
arguments.append('--calc')
arguments.append('"' + formula + '"')
arguments.append('--calc "{}"'.format(formula))
arguments.append('--format')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))
arguments.append('--type')
Expand Down

0 comments on commit 6150b7f

Please sign in to comment.