mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
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
This commit is contained in:
parent
15dfeff9f8
commit
9de737a2da
@ -29,14 +29,15 @@ class OTBAlgorithmProvider(AlgorithmProvider):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user