Skip to content
Permalink
Browse files

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

  • Loading branch information
volaya committed Mar 20, 2019
1 parent 567da1b commit c32152290b516bcd8449db53353e8f902a3c5c02
Showing with 6 additions and 3 deletions.
  1. +6 −3 python/plugins/processing/algs/saga/SagaUtils.py
@@ -109,7 +109,10 @@ def createSagaBatchJobFileFromSagaCommands(commands):
else:
pass
for command in commands:
fout.write('saga_cmd ' + command + '\n')
if isWindows():
fout.write('call saga_cmd ' + command + '\n')
else:
fout.write('saga_cmd ' + command + '\n')

fout.write('exit')

@@ -163,8 +166,8 @@ def executeSaga(feedback):
if isWindows():
command = ['cmd.exe', '/C ', sagaBatchJobFilename()]
else:
os.chmod(sagaBatchJobFilename(), stat.S_IEXEC |
stat.S_IREAD | stat.S_IWRITE)
os.chmod(sagaBatchJobFilename(), stat.S_IEXEC
| stat.S_IREAD | stat.S_IWRITE)
command = ["'" + sagaBatchJobFilename() + "'"]
loglines = []
loglines.append(QCoreApplication.translate('SagaUtils', 'SAGA execution console output'))

0 comments on commit c321522

Please sign in to comment.
You can’t perform that action at this time.