Commit 8510098a authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

debug issue 23

parent 8be0130a
...@@ -54,15 +54,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider): ...@@ -54,15 +54,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
self.descriptionFile = '' self.descriptionFile = ''
def canBeActivated(self): def canBeActivated(self):
if not self.isActive(): return True
return False
folder = OTBUtils.otbFolder()
if folder and os.path.exists(folder):
if os.path.isfile(self.algsFile(folder)):
return True
utils.iface.messageBar().pushWarning("OTB", "Cannot find '{}'. OTB provider will be disabled".format(self.algsFile(folder)))
return False
def check_app_folder(self, v): def check_app_folder(self, v):
if not self.isActive(): if not self.isActive():
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