Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. if _installedVersionFound and not runOtb:
  2. return _installedVersion
  3.  
  4. if otbPath() is None:
  5. _installedVersionFound = False
  6. return None
  7. commands = [os.path.join(otbPath(), "otbcli_Smoothing")]
  8. progress = SilentProgress()
  9. out = executeOtb(commands, progress, False)
  10. for line in out:
  11. if "version" in line:
  12. _installedVersionFound = True
  13. _installedVersion = line.split("version")[-1].strip()
  14. break
  15. return _installedVersion
  16.  
  17. if _installedVersionFound and not runOtb:
  18. return _installedVersion
  19.  
  20. if otbPath() is None or otbLibPath() is None:
  21. _installedVersionFound = False
  22. _installedVersion = {"5.0.0"}
  23.  
  24. return _installedVersion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement