1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

make_readme.py : cast path to str inside the function, because webhook.py calls make_readme with a string

This commit is contained in:
Alexandre Aubin 2021-05-28 17:17:16 +02:00
parent 3772a6a5ec
commit 116c9aca9e

View file

@ -8,7 +8,9 @@ from pathlib import Path
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
def generate_READMEs(app_path: Path): def generate_READMEs(app_path: str):
app_path = Path(app_path)
if not app_path.exists(): if not app_path.exists():
raise Exception("App path provided doesn't exists ?!") raise Exception("App path provided doesn't exists ?!")
@ -62,4 +64,4 @@ if __name__ == "__main__":
) )
args = parser.parse_args() args = parser.parse_args()
generate_READMEs(Path(args.app_path)) generate_READMEs(args.app_path)