Skip to content
Permalink
Browse files
[otb] fix application descriptor generator for Mandatory/optional man…
…agement

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@81 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 13, 2012
1 parent b22f6fa commit dcf6bfb6f09ad55ecda241abdff862e48924215c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/sextante/otb/helper/generate_application_descriptors.py
@@ -3,7 +3,7 @@
import os, sys
import otbApplication

outputpath='/home/jmalik/otb-sextante'
outputpath= os.path.join( os.environ["HOME"], ".qgis/python/plugins/sextante/otb/description" )
endl = os.linesep

def convertendl(s):
@@ -188,7 +188,7 @@ def generate_parameter_InputImage( appInstance, paramKey ):
out += convertendl(appInstance.GetParameterDescription(paramKey))
out += "|"

out += str(appInstance.IsMandatory(paramKey))
out += str(not appInstance.IsMandatory(paramKey))

return out

@@ -206,7 +206,7 @@ def generate_parameter_InputVectorData( appInstance, paramKey ):
out += convertendl(appInstance.GetParameterDescription(paramKey))
out += "|"

out += str(appInstance.IsMandatory(paramKey))
out += str(not appInstance.IsMandatory(paramKey))

return out

0 comments on commit dcf6bfb

Please sign in to comment.