Sign in
◑
Theme
qemu
/
meson
/
refs/heads/fixboostpython
/
.
/
test cases
/
common
/
105 generatorcustom
/
gen.py
blob: 8c3d6e4e0a47791dc92c46aebdc0fa1d97c65f89 [
file
]
#!/usr/bin/env python3
import
sys
ifile
=
sys
.
argv
[
1
]
ofile
=
sys
.
argv
[
2
]
with
open
(
ifile
)
as
f
:
resname
=
f
.
readline
().
strip
()
templ
=
'const char %s[] = "%s";\n'
with
open
(
ofile
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
templ
%
(
resname
,
resname
))