Add support for longer update intervals

Load display-sizes from supported_models
Cleanup old images on new run of Inkycal
This commit is contained in:
Ace
2024-03-10 02:11:33 +01:00
parent 1b94162ac4
commit ae86daf6b8
5 changed files with 106 additions and 44 deletions

View File

@@ -21,7 +21,7 @@ logs = logging.getLogger(__name__)
logs.setLevel(level=logging.INFO)
# Get the path to the Inkycal folder
top_level = os.path.dirname(os.path.abspath(os.path.dirname(__file__))).split("/inkycal")[0]
top_level = "/".join(os.path.dirname(os.path.abspath(os.path.dirname(__file__))).split("/")[:-1])
# Get path of 'fonts' and 'images' folders within Inkycal folder
fonts_location = os.path.join(top_level, "fonts/")