def get_buildroot():
  try:
    return BuildRoot().path
  except BuildRoot.NotFoundError as e:
    print(str(e), file=sys.stderr)
    sys.exit(1)
Returns the pants build root, calculating it if needed.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/build_environment.py/get_buildroot