parameters: (filename)
return_statement: return os.path.join(GetExistStelliteBuildspace(curdir), 'src')
docstring: Searches for the root of the Chromium checkout.
  
    Simply checks parent directories until it finds .gclient and src/.
  
    Args:
      filename: (String) Path to source file being edited.
  
    Returns:
      (String) Path of 'src/', or None if unable to find.
docstring_summary: Searches for the root of the Chromium checkout.
docstring_tokens: Searches for the root of the Chromium checkout .
function: def FindChromeSrcFromFilename(filename):
    """Searches for the root of the Chromium checkout.
  
    Simply checks parent directories until it finds .gclient and src/.
  
    Args:
      filename: (String) Path to source file being edited.
  
    Returns:
      (String) Path of 'src/', or None if unable to find.
    """
    curdir = os.path.normpath(os.path.dirname(filename))
    while not (GetExistStelliteBuildspace(curdir)):
      nextdir = os.path.normpath(os.path.join(curdir, '..'))
      if nextdir == curdir:
        return None
      curdir = nextdir
    return os.path.join(GetExistStelliteBuildspace(curdir), 'src')
function_tokens: def FindChromeSrcFromFilename ( filename ) : curdir = os . path . normpath ( os . path . dirname ( filename ) ) while not ( GetExistStelliteBuildspace ( curdir ) ) : nextdir = os . path . normpath ( os . path . join ( curdir , '..' ) ) if nextdir == curdir : return None curdir = nextdir return os . path . join ( GetExistStelliteBuildspace ( curdir ) , 'src' )