Commit d582514b authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

fixup for 6.6 and future releases

parent 0a453497
......@@ -274,13 +274,17 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
#print('Using OTBUtils.OTB_CLI_FILE=',OTBUtils.OTB_CLI_FILE)
def algsFile(self, d):
return os.path.join(d, 'share', 'otb', 'description', 'algs.txt')
return os.path.join(self.descrFolder(d), 'algs.txt')
def descrFolder(self, d):
return os.path.join(d, 'share', 'otb', 'description')
#!hack for 6.6!#
if self.version == '6.6.0'
return os.path.join(d, 'description')
return os.path.join(d, 'share', 'otb', 'description')
def descrFile(self, d, f):
return os.path.join(d, 'share', 'otb', 'description', f)
return os.path.join(self.descrFolder(d), f)
def otb_app_dir_list(self, v):
folders = v.split(';')
Supports Markdown
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