Skip to content

Commit e1ff6e8

Browse files
author
Giovanni Manghi
committed
processing fix GRASS7 detection on osx: courtesy Martin Laloux
1 parent 2eb8243 commit e1ff6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ def prepareGrass7Execution(commands):
254254
Grass7Utils.createGrass7BatchJobFileFromGrass7Commands(commands)
255255
os.chmod(Grass7Utils.grassBatchJobFilename(), stat.S_IEXEC
256256
| stat.S_IREAD | stat.S_IWRITE)
257-
if isMac() and os.path.exists(Grass7Utils.grassPath() + os.sep + 'grass70.sh'):
258-
command = Grass7Utils.grassPath() + os.sep + 'grass70.sh ' \
257+
if isMac() and os.path.exists(Grass7Utils.grassPath() + os.sep + '*grass.sh*'):
258+
command = Grass7Utils.grassPath() + os.sep + '*grass.sh* ' \
259259
+ Grass7Utils.grassMapsetFolder() + '/PERMANENT'
260260
else:
261261
command = 'grass70 ' + Grass7Utils.grassMapsetFolder() \

0 commit comments

Comments
 (0)