run_buildozer.py 598 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python3
  2. """Runs buildozer on arguments.
  3. This is provided for other scripts to run buildozer without requiring it be
  4. manually installed.
  5. """
  6. __copyright__ = """
  7. Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  8. Exceptions. See /LICENSE for license information.
  9. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  10. """
  11. import os
  12. import sys
  13. import scripts_utils
  14. def main() -> None:
  15. buildozer = scripts_utils.get_release(scripts_utils.Release.BUILDOZER)
  16. os.execv(buildozer, [buildozer] + sys.argv[1:])
  17. if __name__ == "__main__":
  18. main()