[GRASS-dev] pygrass - stdout2dict

Martin Landa landa.martin at gmail.com
Tue Apr 7 04:54:25 PDT 2015


2015-04-07 13:28 GMT+02:00 Pietro <peter.zamb at gmail.com>:
> On Tue, Apr 7, 2015 at 1:05 PM, Martin Landa <landa.martin at gmail.com> wrote:
>> hm, is there any way how to parse command output using pygrass without
>> need to define your own function?
>
> Why not use: parse_key_val(s, sep='=', dflt=None, val_type=None, vsep=None)
>
> define in grass.script.utils?

you are right, are you planning to update pygrass manual? Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list