[upstream_utils] Use os path separator when matching path (#6993)

This commit is contained in:
Ryan Blue
2024-08-24 09:52:52 -04:00
committed by GitHub
parent 96bd1e489f
commit 370e63ede6
7 changed files with 15 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ def copy_upstream_src(wpilib_root):
# Copy gcem include files into allwpilib
walk_cwd_and_copy_if(
lambda dp, f: dp.startswith("./include"),
lambda dp, f: dp.startswith(os.path.join(".", "include")),
os.path.join(wpimath, "src/main/native/thirdparty/gcem"),
)