source: trunk/packages/sipb-xen-base/files/usr/bin/mako @ 884

Last change on this file since 884 was 884, checked in by y_z, 16 years ago

forgot to commit

  • Property svn:executable set to *
File size: 286 bytes
Line 
1#!/usr/bin/env python
2
3from os.path import splitext
4from sys import argv
5from mako.template import Template
6from invirt.common import with_closing
7
8for inpath in argv:
9    @with_closing(file(splitext(inpath)[0], 'w'))
10    def render(f): print >> f, Template(filename = inpath).render()
Note: See TracBrowser for help on using the repository browser.