File Locking (or any similar file mutex) in Windows OS???

Richard Jones rjones at ekit-inc.com
Wed Jul 3 21:16:46 EDT 2002


On Wed, 2002-07-03 at 16:45, Ron Horn wrote:
> I would like some simple and robust way to know if one of the clients is
> currently using the file, but my question could apply to any shared
> resource the various client instances could want to share.  It seems that
> the various file locking features of os.open(), and anydbm.open(), etc.
> are not working right on Windows?
>
> Any suggestions on how to make this work in python running on windows
> clients/server would be appreciated.

Missed the original post. Try the portalocker.py code for hints:

   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203



      Richard






More information about the Python-list mailing list