diff options
-rwxr-xr-x | tools/bisect-builds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py index 159b2ef..060e0f5 100755 --- a/tools/bisect-builds.py +++ b/tools/bisect-builds.py @@ -428,7 +428,7 @@ class PathContext(object): delimiter = ';' if sys.platform.startswith('win') else ':' path_list = os.environ['PATH'].split(delimiter) for path in path_list: - if path.find('depot_tools') != -1: + if path.rstrip(os.path.sep).endswith('depot_tools'): return path return None |