Skip to content

Commit 53b99cb

Browse files
author
julien.malik@gmail.com
committed
[otb] fix command launching for linux
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@76 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 365ccd3 commit 53b99cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sextante/otb/OTBUtils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def executeOtb(commands, progress):
3434
loglines = []
3535
loglines.append("OTB execution console output")
3636
os.putenv('ITK_AUTOLOAD_PATH', OTBUtils.otbLibPath())
37-
proc = subprocess.Popen(commands, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True).stdout
37+
fused_command = ''
38+
for c in commands:
39+
fused_command += c + ' '
40+
proc = subprocess.Popen(fused_command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True).stdout
3841
for line in iter(proc.readline, ""):
3942
if "[*" in line:
4043
idx = line.find("[*")

0 commit comments

Comments
 (0)