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

Revert "debug issue 23"

This reverts commit 8510098a.
parent 8510098a
Pipeline #2 canceled with stages
......@@ -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)))
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