2022-02-24 23:59:57 +03:00
|
|
|
#!/usr/bin/python3
|
2019-02-22 18:24:44 +03:00
|
|
|
# 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.
|
|
|
|
|
2019-03-13 23:09:25 +03:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2019-02-22 18:24:44 +03:00
|
|
|
import os, shutil, sys
|
|
|
|
|
2019-05-06 20:15:35 +03:00
|
|
|
|
2019-02-22 18:24:44 +03:00
|
|
|
def main():
|
2019-05-06 20:15:35 +03:00
|
|
|
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)
|
2019-02-22 18:24:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2019-05-06 20:15:35 +03:00
|
|
|
main()
|