Skip to content

Commit 01434e8

Browse files
committed
[processing] fixed otb version detection when no otb path is defined or found
1 parent a63cab7 commit 01434e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/processing/algs/otb/OTBUtils.py

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def getInstalledVersion(runOtb=False):
135135
if _installedVersionFound and not runOtb:
136136
return _installedVersion
137137

138+
if otbPath() is None:
139+
_installedVersionFound = False
140+
return None
138141
commands = [os.path.join(otbPath(), "otbcli_Smoothing")]
139142
progress = SilentProgress()
140143
out = executeOtb(commands, progress, False)

0 commit comments

Comments
 (0)