Skip to content

Commit

Permalink
Direct access to grass70, in lieu of grass.sh, for Processing on Mac
Browse files Browse the repository at this point in the history
- This just gets GRASS 7 useable in Processing. Vetting of all env vars has not been done.
- Note: all GRASS scripts are now Python, so grass.sh is not available anyway.
- Test for grass.sh remains, in case it is created for a custom packaging setup.
  • Loading branch information
dakcarto committed Apr 18, 2014
1 parent cbee1b5 commit b928d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/grass7/Grass7Utils.py
Expand Up @@ -254,7 +254,7 @@ def prepareGrass7Execution(commands):
Grass7Utils.createGrass7BatchJobFileFromGrass7Commands(commands)
os.chmod(Grass7Utils.grassBatchJobFilename(), stat.S_IEXEC
| stat.S_IREAD | stat.S_IWRITE)
if isMac():
if isMac() and os.path.exists(Grass7Utils.grassPath() + os.sep + 'grass70.sh'):
command = Grass7Utils.grassPath() + os.sep + 'grass70.sh ' \
+ Grass7Utils.grassMapsetFolder() + '/PERMANENT'
else:
Expand Down

0 comments on commit b928d16

Please sign in to comment.