mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04: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:
|
||||
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
|
||||
|
||||
@staticmethod
|
||||
@ -51,6 +59,14 @@ class TauDEMUtils:
|
||||
if folder == None:
|
||||
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
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user