[GRASS-SVN] r65652 - grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 19 12:03:44 PDT 2015


Author: annakrat
Date: 2015-07-19 12:03:44 -0700 (Sun, 19 Jul 2015)
New Revision: 65652

Modified:
   grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
Log:
pygrass: include in command also parameters with value equal 0 (merge from trunk, r65630)

Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py	2015-07-19 19:00:58 UTC (rev 65651)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py	2015-07-19 19:03:44 UTC (rev 65652)
@@ -666,10 +666,10 @@
         skip = ['stdin', 'stdout', 'stderr']
         args = [self.name, ]
         for key in self.inputs:
-            if key not in skip and self.inputs[key].value:
+            if key not in skip and self.inputs[key].value is not None and self.inputs[key].value != '':
                 args.append(self.inputs[key].get_bash())
         for key in self.outputs:
-            if key not in skip and self.outputs[key].value:
+            if key not in skip and self.outputs[key].value is not None and self.outputs[key].value != '':
                 args.append(self.outputs[key].get_bash())
         for flg in self.flags:
             if self.flags[flg].value:



More information about the grass-commit mailing list