Re: os.open and O_EXCL

2008-05-06 Thread Micah Elliott
On 2008-05-01 Ethan Furman wrote: > I am trying to lock a file so no other process can get read nor > write access to it. This looks promising: http://pypi.python.org/pypi/lockfile/0.2 -- Micah Elliott | [EMAIL PROTECTED] | http://MicahElliott.blogspot.com signature.asc Description: Dig

os.open and O_EXCL

2008-05-05 Thread Ethan Furman
Greetings! I am trying to lock a file so no other process can get read nor write access to it. I thought this was possible with os.open(filename, os.O_EXCL), but that is not working. I am aware of the win32file option to do file locking, so my question is this: what is the purpose of the o