示例#1
0
def checkcfg(cfg):
	__pychecker__ = 'no-abstract'
	try:
		rroot = rules.parsefile(cfg['rulefile'])
	except rules.BadInput, e:
		log.error("error loading rules file %s: %s" %\
			  (cfg['rulefile'], str(e)))
		rroot = None
示例#2
0
def process(args):
	for a in args:
		genOut(rules.parsefile(a))