[GRASS-SVN] r61196 - grass/trunk/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 8 09:08:32 PDT 2014


Author: zarch
Date: 2014-07-08 09:08:32 -0700 (Tue, 08 Jul 2014)
New Revision: 61196

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/module.py
Log:
pygrass: Fix stdout and stderr

Modified: grass/trunk/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/module.py	2014-07-08 14:59:49 UTC (rev 61195)
+++ grass/trunk/lib/python/pygrass/modules/interface/module.py	2014-07-08 16:08:32 UTC (rev 61196)
@@ -412,18 +412,14 @@
             del(kargs['flags'])
 
         # set attributs
-        for key in ('run_', 'env_', 'finish_'):
+        for key in ('run_', 'env_', 'finish_', 'stdout_', 'stderr_'):
             if key in kargs:
                 setattr(self, key, kargs.pop(key))
 
         # set inputs
         for key in ('stdin_', ):
             if key in kargs:
-                self.inputs[key].value = kargs.pop(key)
-        # set outputs
-        for key in ('stdout_', 'stderr_'):
-            if key in kargs:
-                self.outputs[key].value = kargs.pop(key)
+                self.inputs[key[:-1]].value = kargs.pop(key)
 
         #
         # check args



More information about the grass-commit mailing list