Skip to content

Commit dcf6bfb

Browse files
author
julien.malik@gmail.com
committedApr 13, 2012
[otb] fix application descriptor generator for Mandatory/optional management
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@81 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent b22f6fa commit dcf6bfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/sextante/otb/helper/generate_application_descriptors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os, sys
44
import otbApplication
55

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

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

191-
out += str(appInstance.IsMandatory(paramKey))
191+
out += str(not appInstance.IsMandatory(paramKey))
192192

193193
return out
194194

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

209-
out += str(appInstance.IsMandatory(paramKey))
209+
out += str(not appInstance.IsMandatory(paramKey))
210210

211211
return out
212212

0 commit comments

Comments
 (0)
Please sign in to comment.