mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-29 00:06:58 -05:00
default TauDEM/MPI paths for OS X
This commit is contained in:
parent
261dfbf562
commit
0ca725cae0
@ -43,6 +43,14 @@ class TauDEMUtils:
|
|||||||
if folder == None:
|
if folder == None:
|
||||||
folder = ""
|
folder = ""
|
||||||
|
|
||||||
|
if SextanteUtils.isMac():
|
||||||
|
testfolder = os.path.join(str(QgsApplication.prefixPath()), "bin")
|
||||||
|
if os.path.exists(os.path.join(testfolder, "slopearea")):
|
||||||
|
folder = testfolder
|
||||||
|
else:
|
||||||
|
testfolder = "/usr/local/bin"
|
||||||
|
if os.path.exists(os.path.join(testfolder, "slopearea")):
|
||||||
|
folder = testfolder
|
||||||
return folder
|
return folder
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -51,6 +59,14 @@ class TauDEMUtils:
|
|||||||
if folder == None:
|
if folder == None:
|
||||||
folder = ""
|
folder = ""
|
||||||
|
|
||||||
|
if SextanteUtils.isMac():
|
||||||
|
testfolder = os.path.join(str(QgsApplication.prefixPath()), "bin")
|
||||||
|
if os.path.exists(os.path.join(testfolder, "mpiexec")):
|
||||||
|
folder = testfolder
|
||||||
|
else:
|
||||||
|
testfolder = "/usr/local/bin"
|
||||||
|
if os.path.exists(os.path.join(testfolder, "mpiexec")):
|
||||||
|
folder = testfolder
|
||||||
return folder
|
return folder
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user