Jenny Turner wrote:

> *Is it possible to get above text ("This application ..." in a variable?*

If it's being written to stdout or stderr, you can capture those by
replacing subprocess.call() with:

        p = subprocess.Popen(<command>, stdout=subprocess.PIPE, 
stderr=subprocess.PIPE)
        out, err = p.communicate()

out and err will be strings, containing the data written to stdout and
stderr respectively.

-- 
Glynn Clements <gl...@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to