Skip to content

Commit

Permalink
[processing] fixed finding grass folder
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya authored and jef-n committed Feb 25, 2019
1 parent 884d9f6 commit 2f305c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -221,7 +221,7 @@ def grassPath():
if "GISBASE" in os.environ:
folder = os.environ["GISBASE"]
else:
testfolder = os.path.join(str(QgsApplication.prefixPath()), 'grass')
testfolder = os.path.join(os.path.dirname(QgsApplication.prefixPath()), 'grass')
if os.path.isdir(testfolder):
grassfolders = sorted([f for f in os.listdir(testfolder) if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, f))], reverse=True, key=lambda x: [int(v) for v in x[len("grass-"):].split('.') if v != 'svn'])
if grassfolders:
Expand Down

0 comments on commit 2f305c5

Please sign in to comment.