Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- for line in out:
- if "version" in line:
- _installedVersionFound = True
- _installedVersion = line.split("version")[-1].strip()
- break
- return _installedVersion
- if _installedVersionFound and not runOtb:
- return _installedVersion
- if otbPath() is None or otbLibPath() is None:
- _installedVersionFound = False
- _installedVersion = {"5.0.0"}
- return _installedVersion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement