On Nov 26, 1:34 pm, Cong Ma <[EMAIL PROTECTED]> wrote:
> So if I can't seem to get directory file descriptors, the only way to use
> os.fchdir() in Python is to embed Python in C code?

This doesn't work for you?

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

Are you getting errors? Incorrect behaviour?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to