Skip to content

Commit febbc4f

Browse files
committed
osgeo4w: handle grass svn versions (fixes #21114)
1 parent dd97201 commit febbc4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/grass7/Grass7Utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def grassPath():
209209
testfolder = str(QgsApplication.prefixPath())
210210
testfolder = os.path.join(testfolder, 'grass')
211211
if os.path.isdir(testfolder):
212-
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('.')])
212+
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'])
213213
if grassfolders:
214214
folder = os.path.join(testfolder, grassfolders[0])
215215
elif isMac():

0 commit comments

Comments
 (0)