Commit 9f7a31a8 authored by Rashad Kanavath's avatar Rashad Kanavath

find otb version 6.6.0 vs rest of releases

parent f83150d9
......@@ -52,7 +52,8 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
def __init__(self):
super().__init__()
self.algs = []
self.version = None
#!hack for 6.6!#
self.version = '6.6.0'
def canBeActivated(self):
if not self.isActive():
......@@ -244,11 +245,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
if not self.canBeActivated():
return
self.version = None
# install_dir #otb issue 1557
version_file = os.path.join(OTBUtils.otbFolder(), 'share', 'doc', 'otb', 'VERSION')
if not os.path.isfile(version_file):
version_file = os.path.join(OTBUtils.otbFolder(), 'share', 'doc', 'OTB-6.6', 'VERSION')
if not os.path.isfile(version_file):
version_file = os.path.join(OTBUtils.otbFolder(), 'VERSION')
......
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