Next / Previous / Contents / Shipman's homepage

6.9. PathInfo.realPath(): Actual absolute path

This method returns the absolute path name equivalent to self.path. Unlike the .absPath() method, any soft links that may occur within the path are resolved and replaced with the paths to which the links refer. It uses the standard Python function os.path.realpath().
# - - -   P a t h I n f o . r e a l P a t h   - - -

    def realPath ( self ):
        """Return self's absolute path name, with links resolved."""
        return  os.path.realpath ( self.path )