Skip to content

Commit

Permalink
Fix path munging
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Jan 8, 2025
1 parent b44f0d5 commit cfaa293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,13 @@ def _ensure_abs_paths(root, paths):
"""Ensure that paths aren't relative"""
output = []
for path in paths:
if path.startswith("-I"):
path = path[2:]
if os.path.isabs(path):
output.append(path)
else:
output.append(os.path.join(root, path))
return output
return [f"-I{path}" for path in output]


PWD = os.path.join(os.path.abspath(os.path.dirname(".")))
Expand Down

0 comments on commit cfaa293

Please sign in to comment.