Skip to content

Commit

Permalink
Update Grass7Utils.py
Browse files Browse the repository at this point in the history
In batchjob, use GRASS_MESSAGE_FORMAT=plain
  • Loading branch information
neteler committed Aug 20, 2015
1 parent b578fc1 commit 424d3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def createGrass7Script(commands):
output.write('set GISBASE=' + folder + '\n')
output.write('set GRASS_PROJSHARE=' + folder + os.sep + 'share'
+ os.sep + 'proj' + '\n')
output.write('set GRASS_MESSAGE_FORMAT=gui\n')
output.write('set GRASS_MESSAGE_FORMAT=plain\n')

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

0 comments on commit 424d3d3

Please sign in to comment.