rivet/config.py

10 lines
241 B
Python
Raw Normal View History

2023-11-24 13:34:44 +00:00
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]