How to determine if an instance of your program is already running?

Miki Tebeka miki.tebeka at zoran.com
Sun Dec 28 02:53:43 EST 2003


Hello Mike,

You can have your program create a known directory (which IIRC an
atomic operation). When a new instance tries to create it, there will
be an exception.

Make sure that when you application is closing to remove this
directory.

HTH.
Miki




More information about the Python-list mailing list