mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
[upstream_utils] Use os path separator when matching path (#6993)
This commit is contained in:
@@ -24,7 +24,8 @@ def copy_upstream_src(wpilib_root):
|
||||
]
|
||||
|
||||
walk_cwd_and_copy_if(
|
||||
lambda dp, f: dp.startswith("./include") and f not in include_ignorelist,
|
||||
lambda dp, f: dp.startswith(os.path.join(".", "include"))
|
||||
and f not in include_ignorelist,
|
||||
os.path.join(wpinet, "src/main/native/thirdparty/libuv"),
|
||||
)
|
||||
|
||||
@@ -45,7 +46,8 @@ def copy_upstream_src(wpilib_root):
|
||||
"sysinfo-memory.c",
|
||||
]
|
||||
walk_cwd_and_copy_if(
|
||||
lambda dp, f: dp.startswith("./src") and f not in src_ignorelist,
|
||||
lambda dp, f: dp.startswith(os.path.join(".", "src"))
|
||||
and f not in src_ignorelist,
|
||||
os.path.join(wpinet, "src/main/native/thirdparty/libuv"),
|
||||
rename_c_to_cpp=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user