Nikos Dumakis wrote:

> 2- If not, how can I store in a variable the result from GDALinfo?

import grass.script as grass
result = grass.Popen(['gdalinfo',...], stdout = grass.PIPE).communicate()[0]

Note: grass.Popen() is a thin wrapper around subprocess.Popen(). The
only difference is that grass.Popen() automatically sets shell=True on
Windows (so that scripts work as well as binary executables).

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to