Skip to content
Permalink
Browse files

default TauDEM/MPI paths for OS X

  • Loading branch information
kyngchaos committed Apr 20, 2013
1 parent 261dfbf commit 0ca725cae0f1ceb567a19a1adf8f58fe7bcd4d16
Showing with 16 additions and 0 deletions.
  1. +16 −0 python/plugins/sextante/taudem/TauDEMUtils.py
@@ -43,6 +43,14 @@ def taudemPath():
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 @@ def mpiexecPath():
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

0 comments on commit 0ca725c

Please sign in to comment.
You can’t perform that action at this time.