|
Last change
on this file since 883 was
882,
checked in by y_z, 17 years ago
|
- added mako program for processing templates in invirt packages
|
-
Property svn:executable set to
*
|
|
File size:
257 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | from sys import argv |
|---|
| 4 | from mako.template import Template |
|---|
| 5 | from invirt.common import with_closing |
|---|
| 6 | |
|---|
| 7 | for inpath in argv: |
|---|
| 8 | @with_closing(file(splitext(inpath)[0], 'w')) |
|---|
| 9 | def render(f): print >> f, Template(filename = inpath).render() |
|---|
Note: See
TracBrowser
for help on using the repository browser.