mirror of
https://github.com/utmapp/angle.git
synced 2026-12-06 02:12:05 -10:00
The changes are to allow build files to be generated using Python 3 on Windows. The scripts still work with Python 2. There are no intended behaviour changes. Bug: 941669 Change-Id: Ia9d8d61373ee37b4470fd5479e9db01e17994ffa Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1520649 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Jamie Madill <[email protected]>
25 lines
545 B
Python
25 lines
545 B
Python
#!/usr/bin/python2
|
|
# Copyright 2019 The ANGLE Project Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# Simple helper for use in 'gn' files to check if a file exists.
|
|
|
|
from __future__ import print_function
|
|
|
|
import os, shutil, sys
|
|
|
|
def main():
|
|
if len(sys.argv) != 2:
|
|
print("Usage: %s <path>" % sys.argv[0])
|
|
sys.exit(1)
|
|
|
|
if os.path.exists(sys.argv[1]):
|
|
print("true")
|
|
else:
|
|
print("false")
|
|
sys.exit(0)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|