Skip to content

Commit 02cd0f0

Browse files
committed
Fix error when otb lib path is not found
1 parent 4a1cc33 commit 02cd0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def getInstalledVersion(runOtb=False):
135135
if _installedVersionFound and not runOtb:
136136
return _installedVersion
137137

138-
if otbPath() is None:
138+
if otbPath() is None or otbLibPath() is None:
139139
_installedVersionFound = False
140140
return None
141141
commands = [os.path.join(otbPath(), "otbcli_Smoothing")]

0 commit comments

Comments
 (0)