[GRASS-dev] obtain the progress percentage of a command run from python

G. Allegri giohappy at gmail.com
Wed Nov 30 18:01:27 EST 2011


I've seen that the grass.script.core.percent() module method wraps the
g.message -p command.
It's ok when the work is done within the python code, but how to grab the
progress emitted by a GRASS command (i,e, G_percent)?
There are many ways to run a command from python. What is the most
appropriate to obtain/pipe the percentage from the command... given it can
be done?

giovanni

http://grass.osgeo.org/programming7/percent_8c.html
http://grass.osgeo.org/programming7/namespacepython_1_1core.html#a14ce86fd0c5c18da189e6e3d0cc10501
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20111201/a6bc7e57/attachment.html


More information about the grass-dev mailing list