File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
python/plugins/processing/algs/grass7 Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 27
27
28
28
import sys
29
29
import os
30
+ import re
30
31
import uuid
31
32
import importlib
32
33
@@ -98,6 +99,8 @@ def __init__(self, descriptionfile):
98
99
self ._name = ''
99
100
self ._display_name = ''
100
101
self ._group = ''
102
+ self ._groupId = ''
103
+ self .groupIdRegex = re .compile ('^[^\s\(]+' )
101
104
self .grass7Name = ''
102
105
self .params = []
103
106
self .hardcodedStrings = []
@@ -138,6 +141,9 @@ def displayName(self):
138
141
def group (self ):
139
142
return self ._group
140
143
144
+ def groupId (self ):
145
+ return self ._groupId
146
+
141
147
def icon (self ):
142
148
return QgsApplication .getThemeIcon ("/providerGrass.svg" )
143
149
@@ -191,6 +197,7 @@ def defineCharacteristicsFromFile(self):
191
197
# Read the grass group
192
198
line = lines .readline ().strip ('\n ' ).strip ()
193
199
self ._group = QCoreApplication .translate ("GrassAlgorithm" , line )
200
+ self ._groupId = self .groupIdRegex .search (line ).group (0 ).lower ()
194
201
hasRasterOutput = False
195
202
hasRasterInput = False
196
203
hasVectorInput = False
You can’t perform that action at this time.
0 commit comments