Skip to content

Commit 7cb18fc

Browse files
Account for absolute paths
1 parent 995c84e commit 7cb18fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def number(clones_dir: str, repo: str, language_code: str) -> int:
3333
f'./sphinxbuild/{language_code}', # outputdir
3434
)
3535
)
36-
prefix = f'{clones_dir}/cpython/Doc/'
36+
prefix = f'{Path(clones_dir).resolve()}/cpython/Doc/'
3737
log = '\n'.join(
3838
line.removeprefix(prefix)
3939
for line in Path(warning_file).read_text().splitlines()

0 commit comments

Comments
 (0)