0

I am working under QGIS V2.16.0. I'd like to run the r.watershed module of grass using the python command console of QGIS.

I tried a lot of syntax like this :

execfile ("r.watershed", "elev=D:\Developpement\Debits_cartes_alea\Donnees_test\exemple_mnt1.tif" )

but no one is working.

  • `execfile` is not working because it is a function to execute a Python file, see https://docs.python.org/2/library/functions.html#execfile – wenzeslaus Sep 16 '16 at 22:10
  • Possible duplicate. http://gis.stackexchange.com/questions/182353/issue-with-r-watershed-run-by-qgis-python-processing-runalg – Fran Raga Sep 19 '16 at 08:17

0 Answers0