Skip to content
Permalink
Browse files

osgeo4w: handle grass svn versions (fixes #21114)

  • Loading branch information
jef-n committed Jan 27, 2019
1 parent dd97201 commit febbc4f0b9e6f1e1c74c18bcb117148d6587ff87
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/grass7/Grass7Utils.py
@@ -209,7 +209,7 @@ def grassPath():
testfolder = str(QgsApplication.prefixPath())
testfolder = os.path.join(testfolder, '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('.')])
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:
folder = os.path.join(testfolder, grassfolders[0])
elif isMac():

0 comments on commit febbc4f

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