aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/126 configure file in generator/src/gen.py
blob: 426d0b74cc131c3fb51fa97ec1b807c29dcf0a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import sys

ifile = sys.argv[1]
ofile = sys.argv[2]

with open(ifile) as f:
    resval = f.readline().strip()

templ = '#define RESULT (%s)\n'
with open(ofile, 'w') as f:
    f.write(templ % (resval, ))