Skip to content

Commit

Permalink
[otb] fix application descriptor generator for Mandatory/optional man…
Browse files Browse the repository at this point in the history
…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 dcf6bfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sextante/otb/helper/generate_application_descriptors.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit dcf6bfb

Please sign in to comment.