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:
volayaf 2012-06-07 18:06:56 +00:00
parent 15dfeff9f8
commit 9de737a2da

View File

@ -29,6 +29,7 @@ class OTBAlgorithmProvider(AlgorithmProvider):
self.preloadedAlgs = []
folder = OTBUtils.otbDescriptionPath()
for descriptionFile in os.listdir(folder):
if descriptionFile.endswith("rsx"):
try:
alg = OTBAlgorithm(os.path.join(folder, descriptionFile))
if alg.name.strip() != "":