Direct access to grass70, in lieu of grass.sh, for Processing on Mac

- 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.
This commit is contained in:
Larry Shaffer 2014-04-18 09:21:56 -06:00
parent cbee1b5219
commit b928d16520

View File

@ -254,7 +254,7 @@ class Grass7Utils:
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: