projects
/
profile
/
ivi
/
dlt-daemon.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Release 2.3.0
[profile/ivi/dlt-daemon.git]
/
transform_spec_file.py
1
import sys
2
from Cheetah.Template import Template
3
4
output = sys.argv[2]
5
args = {}
6
for arg in sys.argv[3:]:
7
key, value = arg.split('=')
8
args[key] = value
9
t = Template(file=sys.argv[1], searchList=[args])
10
with open(output, 'w') as f:
11
f.write(str(t))