mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] detect GRASS 7.4 on Mac
This commit is contained in:
parent
a2ff3631d5
commit
6063c83edf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user