import io

p = r"C:/Users/decid/Documents/projects/spt-core/.worktrees/conduit-w2/crates/spt-daemon/src/shellwake.rs"
s = io.open(p, encoding="utf-8").read()
bad = "spawn = " + chr(92) + "'{noop}" + chr(92) + "'"
good = "spawn = '{noop}'"
n = s.count(bad)
s = s.replace(bad, good)
io.open(p, "w", encoding="utf-8", newline="").write(s)
print("replaced", n)
