Commit 4039b318 authored by szager@chromium.org's avatar szager@chromium.org

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
parent 6b5faf51
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment