Files
angle/scripts/file_exists.py
Jamie Madill d09546e1ec D3D: Fall back to old compiler DLL.
This is a workaround for Windows 7 users sometimes not having the UCRT
required for the new versions of the MS HLSL compiler. It requires a
specific version of the Windows SDK with the old compiler DLL.

Bug: chromium:920704
Change-Id: Id9adb3b9d569272cbd69a8b4fc99dc160d837dbc
Reviewed-on: https://chromium-review.googlesource.com/c/1403254
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Bruce Dawson <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2019-02-22 17:30:43 +00:00

23 lines
491 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.
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()