mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
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:
parent
cbee1b5219
commit
b928d16520
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user