run-ninja.py 287 B

123456789101112
  1. import sys
  2. import os
  3. import subprocess
  4. def main(argv):
  5. src = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
  6. ninja_path = os.path.join(src, 'third_party', 'depot_tools', 'ninja')
  7. os.execv(ninja_path, argv)
  8. if __name__ == '__main__':
  9. main(sys.argv)