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
|
Rev | Line | |
---|
[882] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
[884] | 3 | from os.path import splitext |
---|
[882] | 4 | from sys import argv |
---|
| 5 | from mako.template import Template |
---|
| 6 | from invirt.common import with_closing |
---|
| 7 | |
---|
| 8 | for 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.