Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed autodetection of grass folder
Fix provided by Stefan Blumentrath
  • Loading branch information
volaya committed Jan 26, 2016
1 parent beaa45e commit 99b9a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -88,10 +88,10 @@ def grassPath():
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:
Expand Down

0 comments on commit 99b9a49

Please sign in to comment.