def check_installed(name, path):
 try:
  return (_read_link(name) == path)
 except OSError:
  return False

def check_installed ( name , path ) : try : return ( _read_link ( name ) == path ) except OSError : return False
check if the current highest-priority match for a given alternatives link is set to the desired path cli example: .