[processing] Add 'call' statements to SAGA batch file

This commit is contained in:
Víctor Olaya 2019-03-22 03:15:50 +01:00 committed by Nyall Dawson
parent da6a3786e2
commit e0a990d997

View File

@ -109,6 +109,9 @@ def createSagaBatchJobFileFromSagaCommands(commands):
else: else:
pass pass
for command in commands: for command in commands:
if isWindows():
fout.write('call saga_cmd ' + command + '\n')
else:
fout.write('saga_cmd ' + command + '\n') fout.write('saga_cmd ' + command + '\n')
fout.write('exit') fout.write('exit')