Closed j08lue closed 8 years ago
Thanks for all the details, that made it really easy!
I did as you told and cherry-picked the changes from QGIS, added the one you suggested, and submitted a PR to QGIS, too https://github.com/qgis/QGIS/pull/3183. I did not test either, but the change is so small that it should be OK.
The way I suggest we/I work from now on is that I add changes not in ESA_processing but in a DHI-GRAS fork of QGIS (could have been TigerNET, too, but I don’t have admin rights there). I then copy the relevant bits over to ESA_processing. That way, it is much easier to PR to QGIS and merge their updates than I worked on ESA_processing directly.
Since ESA_processing is currently the same as QGIS/python/plugins/processing, I updated the whole tree now (not just the GRASS part). There were some other changes in QGIS since I last synced, so those are included now, too. I did not review them, though.
By mail from @radosuav:
I've been discussing with Silvia an issue which has been discovered by Silvia and Lotte during recent QGIS workshop at DHI. It has to do with paths to GRASS 6 being set in Processing options even when only GRASS 7 is installed. Even though this doesn't impact WOIS right now (since that still includes GRASS 6) it would be good to have it fixed for the future. As far as I understand (Silvia please correct me if I'm wrong) there are actually two separate but related issues:
The second part should be fixed by replacing the last four lines of grassWinShell() in GrassUtils.py by:
This change should then be submitted as PR to the QGIS repository. The PR would also be a good place to mention the backporting to the three above commits.
The fixes can only be tested on a brand new installation of QGIS (uninstalling and reinstalling QGIS doesn't work because the paths are saved in the registry and that is not cleaned on uninstallation) and I don't have access to any new computers but maybe you'll have a chance. Otherwise we can assume that it should work (at least looking at the code it looks like it should).
Please let me know if the above is not clear or if you would prefer me to handle this.