def strip_build_paths(path):
  strip_paths = [
      'build-out%s' % os.sep,
      'build-gen%s' % os.sep,
      'build-out%s' % os.altsep,
      'build-gen%s' % os.altsep,
      ]
  for strip_path in strip_paths:
    path = path.replace(strip_path, '')
  return path
Strips out build-*/ from the given path.
dataset/ETHPy150Open google/anvil-build/anvil/util.py/strip_build_paths