Skip to content

Commit 0ca725c

Browse files
committedApr 20, 2013
default TauDEM/MPI paths for OS X
1 parent 261dfbf commit 0ca725c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎python/plugins/sextante/taudem/TauDEMUtils.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ def taudemPath():
4343
if folder == None:
4444
folder = ""
4545

46+
if SextanteUtils.isMac():
47+
testfolder = os.path.join(str(QgsApplication.prefixPath()), "bin")
48+
if os.path.exists(os.path.join(testfolder, "slopearea")):
49+
folder = testfolder
50+
else:
51+
testfolder = "/usr/local/bin"
52+
if os.path.exists(os.path.join(testfolder, "slopearea")):
53+
folder = testfolder
4654
return folder
4755

4856
@staticmethod
@@ -51,6 +59,14 @@ def mpiexecPath():
5159
if folder == None:
5260
folder = ""
5361

62+
if SextanteUtils.isMac():
63+
testfolder = os.path.join(str(QgsApplication.prefixPath()), "bin")
64+
if os.path.exists(os.path.join(testfolder, "mpiexec")):
65+
folder = testfolder
66+
else:
67+
testfolder = "/usr/local/bin"
68+
if os.path.exists(os.path.join(testfolder, "mpiexec")):
69+
folder = testfolder
5470
return folder
5571

5672
@staticmethod

0 commit comments

Comments
 (0)
Please sign in to comment.