[GRASS-SVN] r72541 - grass/branches/releasebranch_7_4/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 23 16:10:29 PDT 2018


Author: neteler
Date: 2018-03-23 16:10:29 -0700 (Fri, 23 Mar 2018)
New Revision: 72541

Modified:
   grass/branches/releasebranch_7_4/lib/python/pygrass/modules/interface/module.py
Log:
pygrass: add Module support to underscore in parameter's name (trunk, r72367)

Modified: grass/branches/releasebranch_7_4/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_4/lib/python/pygrass/modules/interface/module.py	2018-03-23 22:55:42 UTC (rev 72540)
+++ grass/branches/releasebranch_7_4/lib/python/pygrass/modules/interface/module.py	2018-03-23 23:10:29 UTC (rev 72541)
@@ -625,6 +625,7 @@
         for param, arg in zip(self.params_list, args):
             param.value = arg
         for key, val in kargs.items():
+            key = key.strip('_')
             if key in self.inputs:
                 self.inputs[key].value = val
             elif key in self.outputs:



More information about the grass-commit mailing list