Hi,
2010/10/18 Helena Herrera <[email protected]>:
> check_input= grass.run_command("g.findfile", element='cell', file=i,
> mapset=mapsetc, quiet="True")
> and I still got that boring print . What am I missing?
verbosity level (quiet/verbose) only affects printing
messages/warnings. In this case 'g.findfile' prints its output to
stdout, so it's printed regardless of quite or verbose flags.
Run
file = grass.read_command('g.findfile', element = 'cell', file='x',
quiet = True)
print file
or better grass.find_file directly (interface for 'g.findfile')
file = grass.find_file(element = 'cell', name = 'x')
print file
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev