[processing] always look for SAGA LTR first (fix #16648)

This commit is contained in:
Alexander Bruy 2017-06-02 10:08:22 +03:00
parent 19cfa83e4e
commit 74984b2525

View File

@ -68,6 +68,7 @@ def findSagaFolder():
folder = testfolder
elif isWindows():
folders = []
folders.append(os.path.join(os.path.dirname(QgsApplication.prefixPath()), 'saga-ltr'))
folders.append(os.path.join(os.path.dirname(QgsApplication.prefixPath()), 'saga'))
if "OSGEO4W_ROOT" in os.environ:
folders.append(os.path.join(str(os.environ['OSGEO4W_ROOT']), "apps", "saga-ltr"))