[GRASS-dev] Grass Python question: do not print warnings

Martin Landa landa.martin at gmail.com
Fri Mar 11 13:15:39 EST 2011


Hi,

2011/3/11 Franz Schiller <franzschiller1975 at gmail.com>:

> I have built a Grass Python and I get some warnings in my Command Output
> Window that I would like to avoid printing of them. How can I do that since
> I'm already using quiet=True?

`quiet = True` (i.e. --quiet) discards only messages printed to
stderr, not warnings or errors. You can discard everything printed to
stderr, see [1]. Just note that you will discard also error messages.

Martin

[1] http://grass.osgeo.org/wiki/Converting_Bash_scripts_to_Python

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


More information about the grass-dev mailing list