Commit e88ccb86 authored by Rashad Kanavath's avatar Rashad Kanavath

incorrect check for test app and application example

parent 72987a69
......@@ -85,9 +85,9 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
descr_folder = self.descrFolder(folder)
for app_dir in otb_app_dirs:
for otb_app in os.listdir(app_dir):
if not otb_app.startswith('otbapp_'):
continue
if otb_app in ['TestApplication','ApplicationExample']:
if not otb_app.startswith('otbapp_') or \
'TestApplication' in otb_app or \
'ApplicationExample' in otb_app:
continue
app_name = os.path.basename(otb_app).split('.')[0][7:]
dfile = os.path.join(descr_folder, app_name + '.txt')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment