File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ def createAlgsList(self):
29
29
self .preloadedAlgs = []
30
30
folder = OTBUtils .otbDescriptionPath ()
31
31
for descriptionFile in os .listdir (folder ):
32
- try :
33
- alg = OTBAlgorithm (os .path .join (folder , descriptionFile ))
34
- if alg .name .strip () != "" :
35
- self .preloadedAlgs .append (alg )
36
- else :
32
+ if descriptionFile .endswith ("rsx" ):
33
+ try :
34
+ alg = OTBAlgorithm (os .path .join (folder , descriptionFile ))
35
+ if alg .name .strip () != "" :
36
+ self .preloadedAlgs .append (alg )
37
+ else :
38
+ SextanteLog .addToLog (SextanteLog .LOG_ERROR , "Could not open OTB algorithm: " + descriptionFile )
39
+ except Exception ,e :
37
40
SextanteLog .addToLog (SextanteLog .LOG_ERROR , "Could not open OTB algorithm: " + descriptionFile )
38
- except Exception ,e :
39
- SextanteLog .addToLog (SextanteLog .LOG_ERROR , "Could not open OTB algorithm: " + descriptionFile )
40
41
41
42
42
43
def initializeSettings (self ):
You can’t perform that action at this time.
0 commit comments