summaryrefslogtreecommitdiffstats
path: root/build/dir_exists.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/dir_exists.py')
-rw-r--r--build/dir_exists.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/dir_exists.py b/build/dir_exists.py
new file mode 100644
index 0000000..d1c194f
--- /dev/null
+++ b/build/dir_exists.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os.path
+import sys
+
+sys.stdout.write(str(os.path.isdir(sys.argv[1])))
+sys.exit(0)