Fix too-many-format-args

This commit is contained in:
Matthias Kuhn 2017-10-16 23:25:13 +02:00
parent d793f6c5ab
commit 6538ba0bf2

View File

@ -45,7 +45,7 @@ def multipleOutputDir(alg, field, basename=None):
commands = ["for r in $(g.list type=rast pattern='{}*'); do".format(basename)]
# Otherwise, export everything
else:
commands = ["for r in $(g.list type=rast); do".format(basename)]
commands = ["for r in $(g.list type=rast); do"]
commands.append(" r.out.gdal -c -t -f input=${{r}} output={}/${{r}}.tif createopt=\"TFW=YES,COMPRESS=LZW\"".format(outputDir))
commands.append("done")
alg.commands.extend(commands)