summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2020-06-23 02:24:00 +0200
committerMarge Bot <eric+marge@anholt.net>2020-07-22 21:51:24 +0000
commit6c4ad62723053de0fc03f6d922fdc804ac58c266 (patch)
tree5353cf8ffc717642b7e9235433ad2aa6a14609c7 /bin
parenta28a08981499316378803b4dc3e84b517837e47b (diff)
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>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post_version.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/post_version.py b/bin/post_version.py
index febe531eec5..328a48b2604 100755
--- a/bin/post_version.py
+++ b/bin/post_version.py
@@ -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()