Skip to content
Permalink
Browse files

fixed problem when opening OTB descriptions

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@231 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Jun 7, 2012
1 parent 15dfeff commit 9de737a2dade3464fba9b306e5ec49ed4d45fe45
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/sextante/otb/OTBAlgorithmProvider.py
@@ -29,14 +29,15 @@ def createAlgsList(self):
self.preloadedAlgs = []
folder = OTBUtils.otbDescriptionPath()
for descriptionFile in os.listdir(folder):
try:
alg = OTBAlgorithm(os.path.join(folder, descriptionFile))
if alg.name.strip() != "":
self.preloadedAlgs.append(alg)
else:
if descriptionFile.endswith("rsx"):
try:
alg = OTBAlgorithm(os.path.join(folder, descriptionFile))
if alg.name.strip() != "":
self.preloadedAlgs.append(alg)
else:
SextanteLog.addToLog(SextanteLog.LOG_ERROR, "Could not open OTB algorithm: " + descriptionFile)
except Exception,e:
SextanteLog.addToLog(SextanteLog.LOG_ERROR, "Could not open OTB algorithm: " + descriptionFile)
except Exception,e:
SextanteLog.addToLog(SextanteLog.LOG_ERROR, "Could not open OTB algorithm: " + descriptionFile)


def initializeSettings(self):

0 comments on commit 9de737a

Please sign in to comment.
You can’t perform that action at this time.