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)