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