Commit b3c6512b authored by Chris Blume's avatar Chris Blume Committed by LUCI CQ

Correct trailing path separator

In [1], I landed a change that contained a bug. It meant to trim off a
trailing path separator. Instead of trimming the end, it trimmed
everything but the first char (since the path separator is 1 char long).

This CL fixes that bug.

[1] https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3451982

Change-Id: Ie4aebfc1042908437bd603da1c20681f19c50f73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3473285
Auto-Submit: Chris Blume <cblume@chromium.org>
Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
parent 63343b07
......@@ -188,7 +188,7 @@ def BuildFileList(override_dir, include_arm):
# Strip off a trailing slash if present
if sdk_path.endswith(os.path.sep):
sdk_path = sdk_path[:len(os.path.sep)]
sdk_path = sdk_path[:-len(os.path.sep)]
debuggers_path = os.path.join(sdk_path, 'Debuggers')
if not os.path.exists(debuggers_path):
......
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