Skip to content

Commit 3bfe2f1

Browse files
committedMar 31, 2016
really fix ab5f06b (ouch again - machine mixup)
1 parent c6117e0 commit 3bfe2f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def grassPath():
9090
if folder is None:
9191
if isWindows():
9292
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")
9494
else:
9595
testfolder = unicode(QgsApplication.prefixPath())
9696
testfolder = os.path.join(testfolder, 'grass')

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def grassPath():
8888
if folder is None:
8989
if isWindows():
9090
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")
9292
else:
9393
testfolder = unicode(QgsApplication.prefixPath())
9494
testfolder = os.path.join(testfolder, 'grass')
@@ -102,7 +102,7 @@ def grassPath():
102102
if not os.path.isdir(folder):
103103
folder = '/Applications/GRASS-7.0.app/Contents/MacOS'
104104

105-
return folder
105+
return folder or ''
106106

107107
@staticmethod
108108
def grassWinShell():

0 commit comments

Comments
 (0)
Please sign in to comment.