Skip to content

Commit 1ef1ca1

Browse files
committed
fix: use --src-root in apply_include_changes.py
1 parent cfdf0aa commit 1ef1ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply_include_changes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def apply_changes(root_path: pathlib.Path, file_changes: Dict[str, List[Change]]
2929
changes = sorted(changes, key=lambda x: x[1])
3030
line_offset = 0
3131

32-
with open(filename, "r+") as f:
32+
with open(root_path.joinpath(filename), "r+") as f:
3333
lines = f.readlines()
3434

3535
# Apply the changes and track the line offset as changes are applied

0 commit comments

Comments
 (0)