post_version.py: update the files in the current worktree, not the one with the script that we run

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5928>
This commit is contained in:
Eric Engestrom 2020-06-23 02:24:00 +02:00 committed by Marge Bot
parent a28a089814
commit 6c4ad62723
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import subprocess
def update_release_notes(version: str) -> None:
p = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes.rst'
p = pathlib.Path('docs') / 'relnotes.rst'
with open(p, 'r') as f:
relnotes = f.readlines()
@ -48,7 +48,7 @@ def update_release_notes(version: str) -> None:
def update_calendar(version: str) -> None:
p = pathlib.Path(__file__).parent.parent / 'docs' / 'release-calendar.rst'
p = pathlib.Path('docs') / 'release-calendar.rst'
with open(p, 'r') as f:
calendar = f.readlines()