1
0
Fork 0

Merge pull request #2129 from YunoHost/fix_pathlib

Fix readme_generator/webhook: make_readme now uses pathlib
This commit is contained in:
tituspijean 2024-03-14 15:38:48 +01:00 committed by GitHub
commit 1f4d3ff86d

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import asyncio import asyncio
from pathlib import Path
import hashlib import hashlib
import hmac import hmac
import os import os
@ -90,7 +91,7 @@ async def on_push(request):
folder, folder,
] ]
) )
generate_READMEs(folder) generate_READMEs(Path(folder))
await git(["add", "README*.md"], in_folder=folder) await git(["add", "README*.md"], in_folder=folder)