From e40fc1158be586a5083edb96feb2d6d11aaa2d4f Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 23 May 2022 17:32:30 +0200 Subject: [PATCH] minor --- rotate-screen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rotate-screen.py b/rotate-screen.py index d551361..b8eb44f 100644 --- a/rotate-screen.py +++ b/rotate-screen.py @@ -112,8 +112,9 @@ class Config: return matches - def load_json(self) -> tuple[list[str], list]: - j = json.loads(self.get_cfg_path().read_text()) + @classmethod + def load_json(cls) -> tuple[list[str], list]: + j = json.loads(cls.get_cfg_path().read_text()) if "screens" not in j: raise Exception("'screens' array missing in cfg.") screens = j["screens"]