Skip to content

Commit c8d3f74

Browse files
pmav99nyalldawson
authored andcommitted
[grass7][mac] Use the most recent GRASS version
This is a continuation of: - #8db3dead87e385f2798356d - #5c97d22b16320874dbe1 This commit only affects users that have multiple GRASS installations on their Macs. Using the most recent GRASS version is what we do on Linux too.
1 parent 50c9b23 commit c8d3f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/grass7/Grass7Utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@ def grassPath():
229229
elif isMac():
230230
# For MacOSX, we scan some well-known directories
231231
# Start with QGIS bundle
232-
for version in ['', '7', '70', '71', '72', '74', '76']:
232+
for version in ['', '7', '76', '74', '72', '71', '70']:
233233
testfolder = os.path.join(str(QgsApplication.prefixPath()),
234234
'grass{}'.format(version))
235235
if os.path.isdir(testfolder):
236236
folder = testfolder
237237
break
238238
# If nothing found, try standalone GRASS installation
239239
if folder is None:
240-
for version in ['0', '1', '2', '4', '6']:
240+
for version in ['6', '4', '2', '1', '0']:
241241
testfolder = '/Applications/GRASS-7.{}.app/Contents/MacOS'.format(version)
242242
if os.path.isdir(testfolder):
243243
folder = testfolder

0 commit comments

Comments
 (0)