Sign in
foss-eda-tools
/
skywater-pdk
/
libs
/
sky130_osu_sc
/
refs/heads/master
/
.
/
lib
/
magic
/
fixAP.py
blob: b411ec11773b9291803541517d65c4320f324148 [
file
] [
log
] [
blame
]
#!/bin/python3
import
sys
with
open
(
"tmp.spice"
)
as
two
,
open
(
sys
.
argv
[
1
])
as
one
,
open
(
"tmp2.spice"
,
'w'
)
as
tmp
:
while
1
:
twol
=
two
.
readline
()
onel
=
one
.
readline
()
if
not
onel
:
break
if
onel
[
0
]==
'+'
:
tmp
.
write
(
twol
)
else
:
tmp
.
write
(
onel
)