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

Greetings

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?

Thanks
Franz

Hi,

2011/3/11 Franz Schiller <franzschiller1975@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

2011/3/11 Martin Landa <landa.martin@gmail.com>:

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

more precisely

http://grass.osgeo.org/wiki/Converting_Bash_scripts_to_Python#Discard_warning.2Ferror_messages

Martin

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