post_version.py: update the files in the current worktree, not the one with the scrip...
authorEric Engestrom <eric@engestrom.ch>
Tue, 23 Jun 2020 00:24:00 +0000 (02:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 21:51:24 +0000 (21:51 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5928>

bin/post_version.py

index febe531eec553afa9d045c7dafdbf2725eafa277..328a48b26049021b8d59125019b3c4c6dd4816ab 100755 (executable)
@@ -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()