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