From fa785f8f5e1a56ece01c2d59c764ceac7643534d Mon Sep 17 00:00:00 2001 From: "Maurice (mausy5043) Hendrix" Date: Sun, 15 Dec 2024 11:02:22 +0100 Subject: [PATCH] fix type --- bin/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/constants.py b/bin/constants.py index 2e7d468..b13278d 100755 --- a/bin/constants.py +++ b/bin/constants.py @@ -18,9 +18,9 @@ _MYHOME = os.environ["HOME"] _DATABASE_FILENAME = "kimnaty.v2.sqlite3" _DATABASE: str = f"/srv/rmt/_databases/kimnaty/{_DATABASE_FILENAME}" -_HERE = os.path.realpath(__file__).split("/") +__HERE: list[str] = os.path.realpath(__file__).split("/") # example: HERE = ['', 'home', 'pi', 'kimnaty', 'bin', 'constants.py'] -_HERE = "/".join(_HERE[0:-2]) +_HERE: str = "/".join(__HERE[0:-2]) _OPTION_OVERRIDE_FILE = f"{_MYHOME}/.config/kimnaty.json" _WEBSITE = "/run/kimnaty/site/img"