4 _template_dir = os.path.join(os.path.dirname(__file__), 'templates')
7 def render(output_file, template_name, args):
8 tpl = open(os.path.join(_template_dir, template_name), 'r')
9 outfd = open(output_file, 'w')
10 outfd.write(tpl.read() % args)
16 return s.lower() in ('1', 'y', 'yes', 'true', 'on')