From cacbb299e4a7c04b70b64cde9f87768b9ebc0261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 14 Mar 2024 15:32:41 +0100 Subject: [PATCH] Fix readme_generator/webhook: make_readme now uses pathlib --- tools/readme_generator/webhook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/readme_generator/webhook.py b/tools/readme_generator/webhook.py index 9871b2d5a5..0795f1b822 100755 --- a/tools/readme_generator/webhook.py +++ b/tools/readme_generator/webhook.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import asyncio +from pathlib import Path import hashlib import hmac import os @@ -90,7 +91,7 @@ async def on_push(request): folder, ] ) - generate_READMEs(folder) + generate_READMEs(Path(folder)) await git(["add", "README*.md"], in_folder=folder)