[GRASS-SVN] r66770 - grass/trunk/lib/python/pygrass/modules/grid

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 8 19:42:57 PST 2015


Author: annakrat
Date: 2015-11-08 19:42:57 -0800 (Sun, 08 Nov 2015)
New Revision: 66770

Modified:
   grass/trunk/lib/python/pygrass/modules/grid/grid.py
Log:
pygrass: fix GridModule when using flags

Modified: grass/trunk/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/grid.py	2015-11-08 16:40:40 UTC (rev 66769)
+++ grass/trunk/lib/python/pygrass/modules/grid/grid.py	2015-11-09 03:42:57 UTC (rev 66770)
@@ -323,7 +323,7 @@
                 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
 



More information about the grass-commit mailing list