From 4039b31851e245a6f39110f478cb3a4bccec220a Mon Sep 17 00:00:00 2001 From: "szager@chromium.org" Date: Wed, 9 Apr 2014 21:56:46 +0000 Subject: [PATCH] Fix to path search redux. TBR=agable@chromium.org,hinoka@chromium.org BUG= Review URL: https://codereview.chromium.org/232093002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@262832 0039d316-1c4b-4281-b951-d872f2087c98 --- git_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cache.py b/git_cache.py index 66f5f8660d..88c55e611d 100755 --- a/git_cache.py +++ b/git_cache.py @@ -158,7 +158,7 @@ class Mirror(object): if sys.platform.startswith('win'): for suffix in ('.bat', '.cmd', '.exe'): alt_target = target + suffix - if os.path.isfile(alt_target) and os.access(target, os.X_OK): + if os.path.isfile(alt_target) and os.access(alt_target, os.X_OK): return alt_target return None