Add a meaningful error to process-templates

This commit is contained in:
jvoisin 2024-02-06 19:15:04 +01:00 committed by Daniel Micay
parent 7ce78d7636
commit 5371c75dc6

View File

@ -5,6 +5,10 @@ from pathlib import Path
import os import os
import sys import sys
if len(sys.argv) != 2:
print(f"Usage: {sys.argv[0]} <path>")
sys.exit(1)
ROOT_DIR = Path(sys.argv[1]) ROOT_DIR = Path(sys.argv[1])
TEMPLATE_PATH_LIST = [ROOT_DIR, "templates/"] TEMPLATE_PATH_LIST = [ROOT_DIR, "templates/"]