Skip to content

Commit

Permalink
[otb] recognize linux default paths to avoid configuration
Browse files Browse the repository at this point in the history
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 c1a8294
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sextante/otb/OTBUtils.py
Expand Up @@ -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
Expand Down

0 comments on commit c1a8294

Please sign in to comment.