On Nov 26, 3:26 pm, greg <[EMAIL PROTECTED]> wrote: > os.O_DIRECTORY must be fairly new -- it doesn't exist > in my 2.5 installation. But os.O_RDONLY seems to work > just as well for this purpose.
Which OS are you using? Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> hasattr(os, 'O_DIRECTORY') True I'm pretty certain it was present under Windows XP as well. -- http://mail.python.org/mailman/listinfo/python-list