Explorar o código

pygrass: fix GridModule when using flags (merge from trunk, https://trac.osgeo.org/grass/changeset/66770)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@66771 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=9) %!d(string=hai) anos
pai
achega
518eca5cb4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/pygrass/modules/grid/grid.py

+ 1 - 1
lib/python/pygrass/modules/grid/grid.py

@@ -317,7 +317,7 @@ def get_cmd(cmdd):
                 if not isinstance(v, list)))
     cmd.extend(("%s=%s" % (k, ','.join([repr(v) for v in vals]))
                 for k, vals in cmdd['outputs'] if isinstance(vals, list)))
-    cmd.extend(("%s" % (flg) for flg in cmdd['flags'] if len(flg) == 1))
+    cmd.extend(("-%s" % (flg) for flg in cmdd['flags'] if len(flg) == 1))
     cmd.extend(("--%s" % (flg[0]) for flg in cmdd['flags'] if len(flg) > 1))
     return cmd