Sign in
qemu
/
meson
/
a3d3efd3cfc6e9b0ce8a7536527e1e9ca134f80a
/
.
/
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
)