rivet/config.py
2023-11-24 14:34:44 +01:00

10 lines
241 B
Python

import json
from typing import Any
class Config:
def __init__(self) -> None:
with open("config.json", "r") as f:
self.params = json.load(f)
def get(self, param: str) -> Any:
return self.params[param]