Exemplo n.º 1
0
 def _resolveVariables(self, value):
     customs = {'WORK': 'C:/work'}
     return String.substituteVars(value, customs=customs)
Exemplo n.º 2
0
def main2():
    customs = {'nEsTed_var': 'NES %DEBUG_LEVEL% TED'}
    print String.substituteVars("plop ${deBuG_lEvEl}")
    print String.substituteVars("plop %NESTED_vAr% yo",
                                customs=customs)