24cbdab97e
Change-Id: I2619784eca0f7a4dd66f2db0104cb746d9266b4e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244369 Commit-Queue: John Rosasco <rosasco@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
20 lines
456 B
Python
Executable File
20 lines
456 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
# Copyright 2019 Google LLC.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""
|
|
Prints "true" if the input |file_name| exists.
|
|
"""
|
|
|
|
import argparse
|
|
import os
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("-file_name", type=str,
|
|
help="File name for which to check existence for.")
|
|
args = parser.parse_args()
|
|
if os.path.exists(args.file_name):
|
|
print "true"
|