Commit 4a4f7d77 authored by Rashad Kanavath's avatar Rashad Kanavath

Revert "debug issue 23"

This reverts commit 8510098a.
parent 8510098a
......@@ -54,7 +54,15 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
self.descriptionFile = ''
def canBeActivated(self):
return True
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
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