mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] fixed otb version detection when no otb path is defined or found
This commit is contained in:
parent
a63cab77ba
commit
01434e8754
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user