Upgrading Py2exe App
ryan at rfk.id.au
Thu Feb 25 00:30:07 CET 2010
On Wed, 2010-02-24 at 15:05 -0800, Aahz wrote:
> 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?
The changes will only take effect the next time the app is started -
currently there's no support for "hot upgrading" a running app.
Would definitely be an interesting feature though...
http://www.rfk.id.au | This message is digitally signed. Please visit
ryan at rfk.id.au | http://www.rfk.id.au/ramblings/gpg/ for details
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: This is a digitally signed message part
More information about the Python-list