File tree 1 file changed +6
-3
lines changed
python/plugins/processing/algs/saga
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ def createSagaBatchJobFileFromSagaCommands(commands):
109
109
else :
110
110
pass
111
111
for command in commands :
112
- fout .write ('saga_cmd ' + command + '\n ' )
112
+ if isWindows ():
113
+ fout .write ('call saga_cmd ' + command + '\n ' )
114
+ else :
115
+ fout .write ('saga_cmd ' + command + '\n ' )
113
116
114
117
fout .write ('exit' )
115
118
@@ -163,8 +166,8 @@ def executeSaga(feedback):
163
166
if isWindows ():
164
167
command = ['cmd.exe' , '/C ' , sagaBatchJobFilename ()]
165
168
else :
166
- os .chmod (sagaBatchJobFilename (), stat .S_IEXEC |
167
- stat .S_IREAD | stat .S_IWRITE )
169
+ os .chmod (sagaBatchJobFilename (), stat .S_IEXEC
170
+ | stat .S_IREAD | stat .S_IWRITE )
168
171
command = ["'" + sagaBatchJobFilename () + "'" ]
169
172
loglines = []
170
173
loglines .append (QCoreApplication .translate ('SagaUtils' , 'SAGA execution console output' ))
You can’t perform that action at this time.
0 commit comments