[processing] detect GRASS 7.4 on Mac

This commit is contained in:
Alexander Bruy 2017-11-23 14:33:23 +02:00
parent a2ff3631d5
commit 6063c83edf

View File

@ -216,7 +216,7 @@ class Grass7Utils(object):
elif isMac():
# For MacOSX, we scan some well-known directories
# Start with QGIS bundle
for version in ['', '7', '70', '71', '72', '73']:
for version in ['', '7', '70', '71', '72', '74']:
testfolder = os.path.join(str(QgsApplication.prefixPath()),
'grass{}'.format(version))
if os.path.isdir(testfolder):
@ -224,7 +224,7 @@ class Grass7Utils(object):
break
# If nothing found, try standalone GRASS installation
if folder is None:
for version in ['0', '1', '2', '3']:
for version in ['0', '1', '2', '4']:
testfolder = '/Applications/GRASS-7.{}.app/Contents/MacOS'.format(version)
if os.path.isdir(testfolder):
folder = testfolder