[processing] fixed otb version detection when no otb path is defined or found

This commit is contained in:
volaya 2016-01-15 11:24:38 +01:00
parent a63cab77ba
commit 01434e8754

View File

@ -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)