Skip to content

Commit 4904629

Browse files
jef-nj08lue
authored andcommitted
fix ab5f06b (ouch)
1 parent 62b9cc0 commit 4904629

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def grassPath():
9191
folder = None
9292
if folder is None:
9393
if isWindows():
94-
if "OSGEO4W_ROOT" in environ:
95-
testfolder = os.path.join(unicode(environ['OSGEO4W_ROOT']), "apps", "grass")
94+
if "OSGEO4W_ROOT" in os.environ:
95+
testfolder = os.path.join(unicode(os.environ['OSGEO4W_ROOT']), "apps", "grass")
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
@@ -88,8 +88,8 @@ def grassPath():
8888
folder = None
8989
if folder is None:
9090
if isWindows():
91-
if "OSGEO4W_ROOT" in environ:
92-
testfolder = os.path.join(unicode(environ['OSGEO4W_ROOT']), "apps", "grass")
91+
if "OSGEO4W_ROOT" in os.environ:
92+
testfolder = os.path.join(unicode(os.environ['OSGEO4W_ROOT']), "apps", "grass")
9393
else:
9494
testfolder = unicode(QgsApplication.prefixPath())
9595
testfolder = os.path.join(testfolder, 'grass')

0 commit comments

Comments
 (0)