Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix set of grass command if not set yet
  • Loading branch information
luipir committed Sep 13, 2018
1 parent 23f1e43 commit 0f07c41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -330,6 +330,9 @@ def prepareGrassExecution(commands):
Prepare GRASS batch job in a script and
returns it as a command ready for subprocess.
"""
if Grass7Utils.command is None:
Grass7Utils.grassBin()

env = os.environ.copy()
env['GRASS_MESSAGE_FORMAT'] = 'plain'
if 'GISBASE' in env:
Expand Down

0 comments on commit 0f07c41

Please sign in to comment.