[GRASS-SVN] r66771 - grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 8 19:44:28 PST 2015
Author: annakrat
Date: 2015-11-08 19:44:28 -0800 (Sun, 08 Nov 2015)
New Revision: 66771
Modified:
grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
Log:
pygrass: fix GridModule when using flags (merge from trunk, r66770)
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2015-11-09 03:42:57 UTC (rev 66770)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/grid/grid.py 2015-11-09 03:44:28 UTC (rev 66771)
@@ -317,7 +317,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