Skip to content

Commit 9be98ac

Browse files
jef-nj08lue
authored andcommitted
really fix ab5f06b (ouch again - machine mixup)
1 parent 4904629 commit 9be98ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/plugins/processing/algs/grass/GrassUtils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def grassPath():
9292
if folder is None:
9393
if isWindows():
9494
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")
9696
else:
9797
testfolder = unicode(QgsApplication.prefixPath())
9898
testfolder = os.path.join(testfolder, 'grass')

python/plugins/processing/algs/grass7/Grass7Utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def grassPath():
8989
if folder is None:
9090
if isWindows():
9191
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")
9393
else:
9494
testfolder = unicode(QgsApplication.prefixPath())
9595
testfolder = os.path.join(testfolder, 'grass')
@@ -103,7 +103,7 @@ def grassPath():
103103
if not os.path.isdir(folder):
104104
folder = '/Applications/GRASS-7.0.app/Contents/MacOS'
105105

106-
return folder
106+
return folder or ''
107107

108108
@staticmethod
109109
def grassDescriptionPath():

0 commit comments

Comments
 (0)