check_internal.py 467 B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """google_api's auto-internal gyp integration.
  6. Takes one argument, a path. Prints 1 if the path exists, 0 if not.
  7. """
  8. from __future__ import print_function
  9. import os
  10. import sys
  11. if __name__ == '__main__':
  12. if os.path.exists(sys.argv[1]):
  13. print(1)
  14. else:
  15. print(0)