From bdd896b87bf14d8630175247d7db8603c60609e5 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 25 Oct 2023 16:09:46 +0200 Subject: [PATCH] Minor changes --- clusterman/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clusterman/config.py b/clusterman/config.py index 761efdf..b4547de 100644 --- a/clusterman/config.py +++ b/clusterman/config.py @@ -20,3 +20,6 @@ class Config: def save(self): with open(self.CONF_FILE, "w") as f: f.write(json.dumps(self.config)) + + def __getitem__(self, key): + return self.config[key]