Skip to content
Permalink
Browse files

osgeo4w: handle grass svn versions (fixes #21114)

(cherry picked from commit febbc4f)
  • Loading branch information
jef-n committed Jan 27, 2019
1 parent b0632c1 commit 3221b1c83fc00d4f292b2b767a27e4bfcef0f88b
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 3221b1c

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