Upgrading Py2exe App
Ryan Kelly
ryan at rfk.id.au
Wed Feb 24 18:30:07 EST 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...
Ryan
--
Ryan Kelly
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...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-list/attachments/20100225/0d1326f7/attachment-0001.sig>
More information about the Python-list
mailing list