Sign in
qemu
/
meson
/
e343590e7d59b4bfd6bc4913ac20ac9c46e702a4
/
.
/
test cases
/
common
/
179 escape and unicode
/
file.py
blob: 40fa7ca488d27dfd69a492a98d7d379b01afaf01 [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
sys
import
os
with
open
(
sys
.
argv
[
1
])
as
fh
:
content
=
fh
.
read
().
replace
(
"{NAME}"
,
sys
.
argv
[
2
])
with
open
(
os
.
path
.
join
(
sys
.
argv
[
3
]),
'w'
,
errors
=
'replace'
)
as
fh
:
fh
.
write
(
content
)