mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
[upstream_utils] Handle edge case in filename matches (#5576)
endswith() leaves files out from subdirectories, which means projects that add new subdirectories won't have those files included when they probably should be.
This commit is contained in:
@@ -30,9 +30,7 @@ def main():
|
||||
|
||||
# Copy gcem include files into allwpilib
|
||||
include_files = walk_cwd_and_copy_if(
|
||||
lambda dp, f: dp.endswith("include")
|
||||
or dp.endswith("gcem_incl")
|
||||
or dp.endswith("quadrature"),
|
||||
lambda dp, f: dp.startswith("./include"),
|
||||
os.path.join(wpimath, "src/main/native/thirdparty/gcem"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user