Skip to content
Browse files

[processing] fixed finding grass folder

  • Loading branch information
volaya authored and jef-n committed Feb 25, 2019
1 parent 884d9f6 commit 2f305c560eb2aa1be3a936c5907bdf1cb1f8da0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/grass7/
@@ -221,7 +221,7 @@ def grassPath():
if "GISBASE" in os.environ:
folder = os.environ["GISBASE"]
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:

0 comments on commit 2f305c5

Please sign in to comment.
You can’t perform that action at this time.