From 38caec4325a29e257bfac9ac1d55d305b82380fe Mon Sep 17 00:00:00 2001 From: "dmazzoni@chromium.org" Date: Thu, 26 Aug 2010 21:31:36 +0000 Subject: Modify checkdeps.py so that it only looks for files named DEPS, not directories. BUG=53498 TEST=manually tried checkdeps.py before and after, verified that it now ignores a directory named DEPS Review URL: http://codereview.chromium.org/3155049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57582 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/checkdeps/checkdeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkdeps/checkdeps.py b/tools/checkdeps/checkdeps.py index 740a581..7c4280f 100755 --- a/tools/checkdeps/checkdeps.py +++ b/tools/checkdeps/checkdeps.py @@ -260,7 +260,7 @@ def ApplyDirectoryRules(existing_rules, dir_name): global_scope = {"From": FromImpl, "Var": _VarImpl(local_scope).Lookup} deps_file = os.path.join(dir_name, "DEPS") - if os.path.exists(deps_file): + if os.path.isfile(deps_file): execfile(deps_file, global_scope, local_scope) elif VERBOSE: print " No deps file found in", dir_name -- cgit v1.1