<div dir="ltr">Dear List,<div><br></div><div>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 ?</div><div><br></div><div>Here under Windows it works with :</div><div><br></div><div><font face="monospace, monospace">subprocess.check_call(''C:\\OSGeo4W\\bin\\gdalwarp...</font><br></div><div><br></div><div>But obviously that won't work on other setups.</div><div><br></div><div>Surprisingly it works too with :<br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">subprocess.check_call('gdalwarp...</font></div><div><br></div><div>Will this work on all setups ? I have no Mac to test on, and am not completely aware of the differences between standalone installs and osgeo4w installs..</div><div><br></div><div>I looked into the GdalTools plugin and the Processing plugin, but their method to get the GdalTool seems excessively complex (the rely on some user settings which don't seem to be set here, and/or do some voodoo about environment variables which I don't really understand...).</div><div><br></div><div><br></div><div>Thanks !</div><div><br></div><div>Olivier</div><div><br></div><div><br></div></div>