mirror of
https://gitlab.com/scemama/EZFIO.git
synced 2024-11-19 04:22:25 +01:00
Regexp for evaluated commands
This commit is contained in:
parent
ccee52d00c
commit
ed1df9f3c1
@ -49,8 +49,8 @@ for group in list(groups.keys()):
|
||||
command_py = command
|
||||
dims_py = str(dims)
|
||||
for g in list(groups.keys()):
|
||||
command_py = command_py.replace(g,'self.'+g)
|
||||
dims_py = dims_py.replace(g,'self.'+g)
|
||||
command_py = re.sub("(\W)"+g, r"\1self."+g, command_py)
|
||||
dims_py = dims_py.replace("(\W)"+g,r'\1self.'+g)
|
||||
var = var.lower()
|
||||
group = group.lower()
|
||||
strdims = tuple(['('+str(x)+')' for x in dims])
|
||||
|
Loading…
Reference in New Issue
Block a user