mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[upstream_utils] Use os path separator when matching path (#6993)
This commit is contained in:
@@ -21,13 +21,15 @@ def copy_upstream_src(wpilib_root):
|
||||
|
||||
# Copy fmt source files into allwpilib
|
||||
walk_cwd_and_copy_if(
|
||||
lambda dp, f: dp.startswith("./src") and f.endswith(".cc") and f != "fmt.cc",
|
||||
lambda dp, f: dp.startswith(os.path.join(".", "src"))
|
||||
and f.endswith(".cc")
|
||||
and f != "fmt.cc",
|
||||
os.path.join(wpiutil, "src/main/native/thirdparty/fmtlib"),
|
||||
)
|
||||
|
||||
# Copy fmt header files into allwpilib
|
||||
walk_cwd_and_copy_if(
|
||||
lambda dp, f: dp.startswith("./include/fmt"),
|
||||
lambda dp, f: dp.startswith(os.path.join(".", "include", "fmt")),
|
||||
os.path.join(wpiutil, "src/main/native/thirdparty/fmtlib"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user