From 89a6c672b3f0a6d4a0344fc4c0532521a1f1d94c 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 --- readme_generator/webhook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme_generator/webhook.py b/readme_generator/webhook.py index 9871b2d..0795f1b 100755 --- a/readme_generator/webhook.py +++ b/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)