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

debug issue 23

parent 8be0130a
......@@ -54,15 +54,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
self.descriptionFile = ''
def canBeActivated(self):
if not self.isActive():
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)))
self.setActive(False)
return False
return True
def check_app_folder(self, v):
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