mirror of https://gitlab.com/scemama/EZFIO.git
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
|
command_py = command
|
||||||
dims_py = str(dims)
|
dims_py = str(dims)
|
||||||
for g in list(groups.keys()):
|
for g in list(groups.keys()):
|
||||||
command_py = command_py.replace(g,'self.'+g)
|
command_py = re.sub("(\W)"+g, r"\1self."+g, command_py)
|
||||||
dims_py = dims_py.replace(g,'self.'+g)
|
dims_py = dims_py.replace("(\W)"+g,r'\1self.'+g)
|
||||||
var = var.lower()
|
var = var.lower()
|
||||||
group = group.lower()
|
group = group.lower()
|
||||||
strdims = tuple(['('+str(x)+')' for x in dims])
|
strdims = tuple(['('+str(x)+')' for x in dims])
|
||||||
|
|
Loading…
Reference in New Issue