[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

@@ -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