File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
python/plugins/processing/algs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def createGrassScript(commands):
165
165
output .write ('g.gisenv.exe set="GISDBASE=' + gisdbase + '"\n ' )
166
166
output .write ('g.gisenv.exe set="GRASS_GUI=text"\n ' )
167
167
for command in commands :
168
- output .write (command + '\n ' )
168
+ output .write (command . encode ( 'utf8' ) + '\n ' )
169
169
output .write ('\n ' )
170
170
output .write ('exit\n ' )
171
171
output .close ()
@@ -174,7 +174,7 @@ def createGrassScript(commands):
174
174
def createGrassBatchJobFileFromGrassCommands (commands ):
175
175
fout = codecs .open (GrassUtils .grassBatchJobFilename (), 'w' , encoding = 'utf-8' )
176
176
for command in commands :
177
- fout .write (command + '\n ' )
177
+ fout .write (command . encode ( 'utf8' ) + '\n ' )
178
178
fout .write ('exit' )
179
179
fout .close ()
180
180
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def createGrass7Script(commands):
163
163
output .write ('g.gisenv.exe set="GISDBASE=' + gisdbase + '"\n ' )
164
164
output .write ('g.gisenv.exe set="GRASS_GUI=text"\n ' )
165
165
for command in commands :
166
- output .write (command + '\n ' )
166
+ output .write (command . encode ( 'utf8' ) + '\n ' )
167
167
output .write ('\n ' )
168
168
output .write ('exit\n ' )
169
169
output .close ()
@@ -172,7 +172,7 @@ def createGrass7Script(commands):
172
172
def createGrass7BatchJobFileFromGrass7Commands (commands ):
173
173
fout = open (Grass7Utils .grassBatchJobFilename (), 'w' )
174
174
for command in commands :
175
- fout .write (command + '\n ' )
175
+ fout .write (command . encode ( 'utf8' ) + '\n ' )
176
176
fout .write ('exit' )
177
177
fout .close ()
178
178
You can’t perform that action at this time.
0 commit comments