Add try-catch for os.path.commonpath to handle paths on different drives
Enhanced the function to use a try-catch block around os.path.commonpath to gracefully handle cases where file paths are located on different drives. This ensures compatibility and prevents errors related to drive differences. R=aredulla@google.com, ayatane@chromium.org, sokcevic@chromium.org Bug: b/360206460 Change-Id: Iee51ba282fd85d211194d8678765a72783727db5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6018123 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>changes/23/6018123/2
parent
cb200ae1c2
commit
b6a5ecc88a
Loading…
Reference in New Issue