Python Language The os Module Follow a symlink (POSIX)


Example

Sometimes you need to determine the target of a symlink. os.readlink will do this:

print(os.readlink(path_to_symlink))