Skip to content

Commit 424d3d3

Browse files
committed
Update Grass7Utils.py
In batchjob, use GRASS_MESSAGE_FORMAT=plain
1 parent b578fc1 commit 424d3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def createGrass7Script(commands):
142142
output.write('set GISBASE=' + folder + '\n')
143143
output.write('set GRASS_PROJSHARE=' + folder + os.sep + 'share'
144144
+ os.sep + 'proj' + '\n')
145-
output.write('set GRASS_MESSAGE_FORMAT=gui\n')
145+
output.write('set GRASS_MESSAGE_FORMAT=plain\n')
146146

147147
# Replacement code for etc/Init.bat
148148
output.write('if "%GRASS_ADDON_PATH%"=="" set PATH=%WINGISBASE%\\bin;%WINGISBASE%\\lib;%PATH%\n')
@@ -247,7 +247,7 @@ def prepareGrass7Execution(commands):
247247
else:
248248
gisrc = userFolder() + os.sep + 'processing.gisrc7'
249249
env['GISRC'] = gisrc
250-
env['GRASS_MESSAGE_FORMAT'] = 'gui'
250+
env['GRASS_MESSAGE_FORMAT'] = 'plain'
251251
env['GRASS_BATCH_JOB'] = Grass7Utils.grassBatchJobFilename()
252252
del env['GISBASE']
253253
Grass7Utils.createGrass7BatchJobFileFromGrass7Commands(commands)

0 commit comments

Comments
 (0)