[GRASS-SVN] r57529 - grass/trunk/lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 28 08:01:45 PDT 2013
Author: zarch
Date: 2013-08-28 08:01:45 -0700 (Wed, 28 Aug 2013)
New Revision: 57529
Modified:
grass/trunk/lib/python/pygrass/modules/interface/module.py
Log:
Skip special parameters
Modified: grass/trunk/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/module.py 2013-08-28 13:18:52 UTC (rev 57528)
+++ grass/trunk/lib/python/pygrass/modules/interface/module.py 2013-08-28 15:01:45 UTC (rev 57529)
@@ -312,12 +312,13 @@
@return The command string
"""
+ skip = ['stdin', 'stdout', 'stderr']
args = [self.name, ]
for key in self.inputs:
- if self.inputs[key].value:
+ if key not in skip and self.inputs[key].value:
args.append(self.inputs[key].get_bash())
for key in self.outputs:
- if self.outputs[key].value:
+ if key not in skip 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