From 01434e87542e166a540fab6041d51839eb511abd Mon Sep 17 00:00:00 2001 From: volaya Date: Fri, 15 Jan 2016 11:24:38 +0100 Subject: [PATCH] [processing] fixed otb version detection when no otb path is defined or found --- python/plugins/processing/algs/otb/OTBUtils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/plugins/processing/algs/otb/OTBUtils.py b/python/plugins/processing/algs/otb/OTBUtils.py index ee24b5421dc..cbba2528020 100644 --- a/python/plugins/processing/algs/otb/OTBUtils.py +++ b/python/plugins/processing/algs/otb/OTBUtils.py @@ -135,6 +135,9 @@ def getInstalledVersion(runOtb=False): if _installedVersionFound and not runOtb: return _installedVersion + if otbPath() is None: + _installedVersionFound = False + return None commands = [os.path.join(otbPath(), "otbcli_Smoothing")] progress = SilentProgress() out = executeOtb(commands, progress, False)