Is it possible for a running python program to overwrite itself?
<p>Is it possible for a python script to open its own source file and overwrite it?</p>

<p>The idea was to have a very simple and very dirty way for a python script to download an update of itself so that the next time it is run it would be an updated version.</p>
