Upgrading Py2exe App
Aahz
aahz at pythoncraft.com
Wed Feb 24 18:05:09 EST 2010
In article <mailman.2807.1266614926.28905.python-list at python.org>,
Ryan Kelly <ryan at rfk.id.au> wrote:
>
>Yes. The idea of having a "bootstrapping exe" is that actual
>application code can be swapped out without having to overwrite the
>executable file. As long as you don't change python versions, this
>allows updates to be safe against system crashes, even on platforms
>without atomic file replacement.
>
>So the frozen app does this in a background thread:
>
> Esky(sys.executable,"http://my.updates.com").auto_update()
>
>And it hits the given url, grabs the latest zipfile, downloads and
>unpacks and atomically places it into the application directory. Et
>viola, your app is at the latest version.
How does this work with a running app? What if the app is a service?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer
More information about the Python-list
mailing list