[GRASS-dev] How to get stop a script with an error in a function

Martin Landa landa.martin at gmail.com
Fri Oct 15 11:22:55 EDT 2010


[keep discussion in ML]

2010/10/15 António Rocha <antonio.rocha at deimos.com.pt>:
> Thanks... You are right Zero is for success.
> By the way, if a GRASS gunction, that I'm using through grass.run_command
> is, prints something in Command Output, how can I "get" it in order to use
> it?

try grass.read_command [1].

Martin

[1] http://grass.osgeo.org/programming7/namespacegrass_1_1script_1_1core.html#a7cf2b8f9c0c14e2e9c23acdfe9178433

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list