From 99b9a495b853f7e02141e145469af9cf599707a4 Mon Sep 17 00:00:00 2001 From: volaya Date: Tue, 26 Jan 2016 19:32:24 +0100 Subject: [PATCH] [processing] fixed autodetection of grass folder Fix provided by Stefan Blumentrath --- python/plugins/processing/algs/grass7/Grass7Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/algs/grass7/Grass7Utils.py b/python/plugins/processing/algs/grass7/Grass7Utils.py index a035058dff6..8bf8ad8eea0 100644 --- a/python/plugins/processing/algs/grass7/Grass7Utils.py +++ b/python/plugins/processing/algs/grass7/Grass7Utils.py @@ -88,10 +88,10 @@ class Grass7Utils: if folder is None: if isWindows(): testfolder = os.path.dirname(unicode(QgsApplication.prefixPath())) - testfolder = os.path.join(testfolder, 'grass7') + testfolder = os.path.join(testfolder, 'grass') if os.path.isdir(testfolder): for subfolder in os.listdir(testfolder): - if subfolder.startswith('grass7'): + if subfolder.startswith('grass-7'): folder = os.path.join(testfolder, subfolder) break else: