(filepath)
return filepath
In case filepath is a symlink, follow it until a
        real file is reached.
In case filepath is a symlink, follow it until a
        real file is reached.
In case filepath is a symlink follow it until a real file is reached .
def _follow_symlinks(filepath):

    """ In case filepath is a symlink, follow it until a
        real file is reached.
    """
    filepath = os.path.abspath(filepath)
    while os.path.islink(filepath):
        filepath = os.path.normpath(
            os.path.join(os.path.dirname(filepath), os.readlink(filepath)))
    return filepath
def _follow_symlinks ( filepath ) : filepath = os . path . abspath ( filepath ) while os . path . islink ( filepath ) : filepath = os . path . normpath ( os . path . join ( os . path . dirname ( filepath ) , os . readlink ( filepath ) ) ) return filepath