[processing] fixed autodetection of grass folder

Fix provided by Stefan Blumentrath
This commit is contained in:
volaya 2016-01-26 19:32:24 +01:00
parent beaa45e557
commit 99b9a495b8

View File

@ -88,10 +88,10 @@ class Grass7Utils:
if folder is None:
if isWindows():
testfolder = os.path.dirname(unicode(QgsApplication.prefixPath()))
testfolder = os.path.join(testfolder, 'grass7')
testfolder = os.path.join(testfolder, 'grass')
if os.path.isdir(testfolder):
for subfolder in os.listdir(testfolder):
if subfolder.startswith('grass7'):
if subfolder.startswith('grass-7'):
folder = os.path.join(testfolder, subfolder)
break
else: