def get_build_file_path(path):
  if os.path.isdir(path):
    if os.path.isfile(os.path.join(path, 'BUILD.anvil')):
      return os.path.join(path, 'BUILD.anvil')
    elif os.path.isfile(os.path.join(path, 'BUILD')):
      return os.path.join(path, 'BUILD')
  return path
Gets the path to a BUILD file, given a directory or file.
dataset/ETHPy150Open google/anvil-build/anvil/util.py/get_build_file_path