We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ef334 commit 044c5a3Copy full SHA for 044c5a3
src/pyproject_hooks/_impl.py
@@ -119,7 +119,7 @@ def norm_and_check(source_tree: str, requested: str) -> str:
119
abs_requested = os.path.normpath(os.path.join(abs_source, requested))
120
norm_source = os.path.normcase(abs_source)
121
norm_requested = os.path.normcase(abs_requested)
122
- if not norm_requested.startswith(norm_source + os.sep):
+ if not (norm_requested + os.sep).startswith(norm_source + os.sep):
123
raise ValueError("paths must be inside source tree")
124
125
return abs_requested
0 commit comments