Skip to content
Permalink
Browse files

[grass7] Add support for GRASS 76 on Mac too.

This is a continuation of 8db3dea
  • Loading branch information
pmav99 committed Feb 13, 2019
1 parent dabd649 commit 5c97d22b16320874dbe136c8057b666180ee45bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/grass7/Grass7Utils.py
@@ -229,15 +229,15 @@ def grassPath():
elif isMac():
# For MacOSX, we scan some well-known directories
# Start with QGIS bundle
for version in ['', '7', '70', '71', '72', '74']:
for version in ['', '7', '70', '71', '72', '74', '76']:
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', '4']:
for version in ['0', '1', '2', '4', '6']:
testfolder = '/Applications/GRASS-7.{}.app/Contents/MacOS'.format(version)
if os.path.isdir(testfolder):
folder = testfolder

0 comments on commit 5c97d22

Please sign in to comment.
You can’t perform that action at this time.