Skip to content
Permalink
Browse files
[otb] recognize linux default paths to avoid configuration
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@128 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 19, 2012
1 parent 91b8d24 commit c1a829424b2cf228e356a4382259379f0d0e6875
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/sextante/otb/OTBUtils.py
@@ -15,14 +15,21 @@ class OTBUtils:
def otbPath():
folder = SextanteConfig.getSetting(OTBUtils.OTB_FOLDER)
if folder == None:
folder =""
folder = ""

if os.path.exists("/usr/bin/otbcli"):
folder = "/usr/bin"
return folder

@staticmethod
def otbLibPath():
folder = SextanteConfig.getSetting(OTBUtils.OTB_LIB_FOLDER)
if folder == None:
folder =""

linuxstandardpath = "/usr/lib/otb/applications"
if os.path.exists(linuxstandardpath):
folder = linuxstandardpath
return folder

@staticmethod

0 comments on commit c1a8294

Please sign in to comment.