Skip to content

Commit 0f07c41

Browse files
committed
Fix set of grass command if not set yet
1 parent 23f1e43 commit 0f07c41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/processing/algs/grass7/Grass7Utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def prepareGrassExecution(commands):
330330
Prepare GRASS batch job in a script and
331331
returns it as a command ready for subprocess.
332332
"""
333+
if Grass7Utils.command is None:
334+
Grass7Utils.grassBin()
335+
333336
env = os.environ.copy()
334337
env['GRASS_MESSAGE_FORMAT'] = 'plain'
335338
if 'GISBASE' in env:

0 commit comments

Comments
 (0)