Skip to content
Permalink
Browse files
[otb] add quotes around command parameter
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@87 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 13, 2012
1 parent 00c4ba3 commit effb815ffa59f7ff56e510dc0a83dbedf75934fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sextante/otb/OTBUtils.py
@@ -34,7 +34,7 @@ def executeOtb(commands, progress):
loglines = []
loglines.append("OTB execution console output")
os.putenv('ITK_AUTOLOAD_PATH', OTBUtils.otbLibPath())
fused_command = ''.join(['%s ' % c for c in commands])
fused_command = ''.join(['"%s" ' % c for c in commands])
proc = subprocess.Popen(fused_command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT, universal_newlines=True).stdout
for line in iter(proc.readline, ""):
if "[*" in line:

0 comments on commit effb815

Please sign in to comment.