Function
posixpath.realpath

Signature

realpath(filename)

Documentation String

Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.