File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
python/plugins/processing/algs Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def grassPath():
90
90
if folder is None :
91
91
if isWindows ():
92
92
if "OSGEO4W_ROOT" in os .environ :
93
- testfolder = os .path .join (unicode (os .environ ['OSGEO4W_ROOT' ]), "apps" , "grass" )
93
+ testfolder = os .path .join (unicode (os .environ ['OSGEO4W_ROOT' ]), "apps" )
94
94
else :
95
95
testfolder = unicode (QgsApplication .prefixPath ())
96
96
testfolder = os .path .join (testfolder , 'grass' )
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def grassPath():
88
88
if folder is None :
89
89
if isWindows ():
90
90
if "OSGEO4W_ROOT" in os .environ :
91
- testfolder = os .path .join (unicode (os .environ ['OSGEO4W_ROOT' ]), "apps" , "grass" )
91
+ testfolder = os .path .join (unicode (os .environ ['OSGEO4W_ROOT' ]), "apps" )
92
92
else :
93
93
testfolder = unicode (QgsApplication .prefixPath ())
94
94
testfolder = os .path .join (testfolder , 'grass' )
@@ -102,7 +102,7 @@ def grassPath():
102
102
if not os .path .isdir (folder ):
103
103
folder = '/Applications/GRASS-7.0.app/Contents/MacOS'
104
104
105
- return folder
105
+ return folder or ''
106
106
107
107
@staticmethod
108
108
def grassWinShell ():
You can’t perform that action at this time.
0 commit comments