def CMD_set(self,*args):
            '''-1|set [variable_name] [value]|Set configuration variable value|Values are python expressions: 1, True, "How are you".lower()'''
            value=" ".join(args[1:])
    
            if args[0] not in self.configvars:
                raise Exception("Variable %s doesn't exist" % (args[0]))
    
            setattr(self,"CFG_"+args[0],eval(value))
-1|set [variable_name] [value]|Set configuration variable value|Values are python expressions: 1, True, "How are you".lower()
recipes/Python/577245_Command_line_interface_class/recipe-577245.py