mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[upstream_utils] Use os path separator when matching path (#6993)
This commit is contained in:
@@ -19,7 +19,7 @@ def eigen_inclusions(dp, f):
|
||||
dp -- directory path
|
||||
f -- filename
|
||||
"""
|
||||
if not dp.startswith("./Eigen"):
|
||||
if not dp.startswith(os.path.join(".", "Eigen")):
|
||||
return False
|
||||
|
||||
abspath = os.path.join(dp, f)
|
||||
@@ -79,7 +79,7 @@ def unsupported_inclusions(dp, f):
|
||||
dp -- directory path
|
||||
f -- filename
|
||||
"""
|
||||
if not dp.startswith("./unsupported"):
|
||||
if not dp.startswith(os.path.join(".", "unsupported")):
|
||||
return False
|
||||
|
||||
abspath = os.path.join(dp, f)
|
||||
|
||||
Reference in New Issue
Block a user