Skip to content

Commit

Permalink
[processing] detect GRASS 7.4 on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 23, 2017
1 parent a2ff363 commit 6063c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -216,15 +216,15 @@ def grassPath():
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):
folder = testfolder
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
Expand Down

0 comments on commit 6063c83

Please sign in to comment.