How do I force a single instance of a python app?

Alex Martelli aleaxit at yahoo.com
Fri Oct 27 07:27:16 EDT 2000


"Mark Hammond" <MarkH at ActiveState.com> wrote in message
news:xM2K5.894$Tq6.8420 at news-server.bigpond.net.au...
    [snip]
> The idea of creating a directory was one I saw in a very old source
> control system.  They documented that they used a directory as a lock,
> as it was the only reasonable, cross platform, atomic operation with

This classic approach is also exposed in Python documentation material,
such as the talk Guido gave at SD '99 East; see "A simple lock solution":
    http://www.python.org/doc/essays/ppt/sd99east/sld054.htm


Alex






More information about the Python-list mailing list