mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[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
This commit is contained in:
parent
91b8d24beb
commit
c1a829424b
@ -15,7 +15,10 @@ 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
|
||||
@ -23,6 +26,10 @@ class OTBUtils:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user