def _get_makeconf():
 old_conf = '/etc/make.conf'
 new_conf = '/etc/portage/make.conf'
 if __salt__['file.file_exists'](old_conf):
  return old_conf
 elif __salt__['file.file_exists'](new_conf):
  return new_conf

def _get_makeconf ( ) : old_conf = '/etc/make.conf' new_conf = '/etc/portage/make.conf' if __salt__ [ 'file.file_exists' ] ( old_conf ) : return old_conf elif __salt__ [ 'file.file_exists' ] ( new_conf ) : return new_conf
find the correct make .