mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[upstream_utils] Use os path separator when matching path (#6993)
This commit is contained in:
@@ -245,7 +245,7 @@ use_include_files = (
|
||||
|
||||
|
||||
def matches(dp, f, files):
|
||||
if not dp.startswith("./src/"):
|
||||
if not dp.startswith(os.path.join(".", "src")):
|
||||
return False
|
||||
p = dp[6:] + "/" + f
|
||||
return p in files
|
||||
|
||||
Reference in New Issue
Block a user