There are better ways than subprocess. You can try:
import processing
processing.runalg("gdalogr:warpreproject", list, of, params)
This depends on the Processing plugin being enabled, though. Or you can try:
from osgeo import gdal
--
View this message in context:
http://osgeo-org.1560.x6.nab
Dear List,
I'm updating the RasterBender plugin and need to use the gdalwarp and
gdal_translate command line tools from within Python. What is the
recommended way to run gdal command line tools from within a QGIS plugin ?
Here under Windows it works with :
subprocess.check_call(''C:\\OSGeo4W\\bi