Give configs access to random numbers
This commit is contained in:
parent
73b974458b
commit
d39877b7fb
@ -83,7 +83,7 @@ class Slate():
|
||||
|
||||
def expand_vars(self, string, **kwargs):
|
||||
if isinstance(string, str):
|
||||
return string.format(**kwargs)
|
||||
return string.format(**kwargs, rand=int(random.random()*99999999))
|
||||
return string
|
||||
|
||||
def apply_nested(self, d, f):
|
||||
|
Loading…
Reference in New Issue
Block a user