Skip to content

Commit c6117e0

Browse files
committed
fix ab5f06b (ouch)
1 parent 0168bd5 commit c6117e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def grassPath():
8989
folder = ProcessingConfig.getSetting(GrassUtils.GRASS_FOLDER)
9090
if folder is None:
9191
if isWindows():
92-
if "OSGEO4W_ROOT" in environ:
93-
testfolder = os.path.join(unicode(environ['OSGEO4W_ROOT']), "apps", "grass")
92+
if "OSGEO4W_ROOT" in os.environ:
93+
testfolder = os.path.join(unicode(os.environ['OSGEO4W_ROOT']), "apps", "grass")
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
@@ -87,8 +87,8 @@ def grassPath():
8787
folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_FOLDER)
8888
if folder is None:
8989
if isWindows():
90-
if "OSGEO4W_ROOT" in environ:
91-
testfolder = os.path.join(unicode(environ['OSGEO4W_ROOT']), "apps", "grass")
90+
if "OSGEO4W_ROOT" in os.environ:
91+
testfolder = os.path.join(unicode(os.environ['OSGEO4W_ROOT']), "apps", "grass")
9292
else:
9393
testfolder = unicode(QgsApplication.prefixPath())
9494
testfolder = os.path.join(testfolder, 'grass')

0 commit comments

Comments
 (0)