alex23 wrote:

import os
dirfd = os.open("directory-name", os.O_DIRECTORY)
os.fchdir(dirfd)

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.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to