def show_current(name):
    '''
    Display the current highest-priority alternative for a given alternatives
    link

    CLI Example:

    .. code-block:: bash

        salt '*' alternatives.show_current editor
    '''
    alt_link_path = '/etc/alternatives/{0}'.format(name)
    try:
        return os.readlink(alt_link_path)
    except __HOLE__:
        log.error(
            'alternatives: path {0} does not exist'.format(alt_link_path)
        )
    return False
dataset/ETHPy150Open saltstack/salt/salt/modules/alternatives.py/show_current