[GRASS-dev] grass7 addon python script - finishes in normal and --verbose mode, but not in --quiet mode

Helmut Kudrnovsky hellik at web.de
Fri Nov 14 08:02:05 PST 2014


Anna Petrášová wrote
>>
>> grass.read_command('r.info', map='elevation', flags='g', quiet=True)
>>
>> and it gives output as expected.
>>
> 
> It's because of the header line:
> cat|length
> 1|572.767146965659
> 
> but in quiet mode you get:
> 
> 1|572.767146965659
> 
> so I would suggest set quiet=True for v.to.db and change the code for
> parsing to expect just one line.
> 
> Anna

yes, this works. script adapted.

thanks




-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/grass7-addon-python-script-finishes-in-normal-and-verbose-mode-but-not-in-quiet-mode-tp5172902p5173068.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list