blob: b474e6bf7fc11b5c72569f08a080d6ebcbb4fb44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import sys
from Cheetah.Template import Template
output = sys.argv[2]
args = {}
for arg in sys.argv[3:]:
key, value = arg.split('=')
args[key] = value
t = Template(file=sys.argv[1], searchList=[args])
with open(output, 'w') as f:
f.write(str(t))
|