Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] Add 'call' statements to SAGA batch file
- Loading branch information
Showing
with
6 additions
and
3 deletions.
-
+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')) |
|
|