summaryrefslogtreecommitdiffstats
path: root/build/dir_exists.py
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 18:18:17 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 18:18:17 +0000
commit0cd7700f258468742e4d9d7f8583d23746875302 (patch)
treeb0f5f2413899d6080a9a02e74ac97a5a4ea628aa /build/dir_exists.py
parentfcaa54ac4e3be4b65e99526686c003574735d6c6 (diff)
downloadchromium_src-0cd7700f258468742e4d9d7f8583d23746875302.zip
chromium_src-0cd7700f258468742e4d9d7f8583d23746875302.tar.gz
chromium_src-0cd7700f258468742e4d9d7f8583d23746875302.tar.bz2
Relanding r53076 with linux fix.
TEST=try BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53810 0039d316-1c4b-4281-b951-d872f2087c98
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)