예제 #1
0
파일: string.py 프로젝트: T00N3/T00N3Kit
 def _resolveVariables(self, value):
     customs = {'WORK': 'C:/work'}
     return String.substituteVars(value, customs=customs)
예제 #2
0
파일: rex.py 프로젝트: T00N3/T00N3Kit
def main2():
    customs = {'nEsTed_var': 'NES %DEBUG_LEVEL% TED'}
    print String.substituteVars("plop ${deBuG_lEvEl}")
    print String.substituteVars("plop %NESTED_vAr% yo",
                                customs=customs)