vf-site/lib/config.py
2023-05-28 12:49:03 +02:00

12 lines
209 B
Python

import json
from typing import TypedDict
class Config(TypedDict):
templates: list[str]
outDir: str
def load() -> Config:
with open("config.json", "r") as f:
return json.loads(f.read())