For the sketch, yes, but you're reading a bit to l...
# pex
e
For the sketch, yes, but you're reading a bit to literally. You could invert things and have ptex copy itself to temp, reexec there and write over it's old location.