def _get_config_file(conf, atom):
 if ('*' in atom):
  parts = portage.dep.Atom(atom, allow_wildcard=True)
  if (not parts):
   return
  if (parts.cp == '*/*'):
   relative_path = (parts.repo or 'gentoo')
  else:
   relative_path = os.path.join(*[x for x in os.path.split(parts.cp) if (x != '*')])
 else:
  relative_path = _p_to_cp(atom)
  if (not relative_path):
   return
 complete_file_path = ((BASE_PATH.format(conf) + '/') + relative_path)
 return complete_file_path

def _get_config_file ( conf , atom ) : if ( '*' in atom ) : parts = portage . dep . Atom ( atom , allow_wildcard = True ) if ( not parts ) : return if ( parts . cp == '*/*' ) : relative_path = ( parts . repo or 'gentoo' ) else : relative_path = os . path . join ( * [ x for x in os . path . split ( parts . cp ) if ( x != '*' ) ] ) else : relative_path = _p_to_cp ( atom ) if ( not relative_path ) : return complete_file_path = ( ( BASE_PATH . format ( conf ) + '/' ) + relative_path ) return complete_file_path
parse the given atom .