File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
python/plugins/sextante/taudem Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ def taudemPath():
43
43
if folder == None :
44
44
folder = ""
45
45
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
46
54
return folder
47
55
48
56
@staticmethod
@@ -51,6 +59,14 @@ def mpiexecPath():
51
59
if folder == None :
52
60
folder = ""
53
61
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
54
70
return folder
55
71
56
72
@staticmethod
You can’t perform that action at this time.
0 commit comments