Bug report #21638

The Grass7 processing toolbox option dialogue should include a way to specify a path to the GRASS binary, overriding Grass7Utils.command

Added by vince - 11 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/GRASS
Affected QGIS version:3.6.0 Regression?:No
Operating System:MacOS X Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29454

Description

As I understand it, the Python interface layer to Grass attempts to locate the Grass binary in the "GRASS folder" directory specified in the Processing toolbox setup.
However, on MacOS, the grass binary (grass76) and the various function binaries (v.buffer, for example) are often installed in two separate directories.
This leads to the Python plugin mistaking a standard file for the Grass binary.

Is it possible to add an entry in the Processing toolbox configuration dialogue to manually specify/override the Grass7Utils.command variable value?
For the time being, I have to insert this line:

Grass7Utils.command = "path_to_grass76" 

into the grassBin() static method for the toolbox to work properly

Also available in: Atom PDF