Inkycal/inkycal/settings.py

23 lines
844 B
Python
Raw Permalink Normal View History

2024-05-12 02:00:26 +02:00
"""Settings class
Used to initialize the settings for the application.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Settings:
"""Settings class to initialize the settings for the application.
"""
CACHE_PATH = os.path.join(basedir, "cache")
2024-07-07 19:52:29 +02:00
LOG_PATH = os.path.join(basedir, "../logs")
2024-05-12 02:00:26 +02:00
INKYCAL_LOG_PATH = os.path.join(LOG_PATH, "inkycal.log")
FONT_PATH = os.path.join(basedir, "../fonts")
IMAGE_FOLDER = os.path.join(basedir, "../image_folder")
2024-07-05 11:54:07 +02:00
PARALLEL_DRIVER_PATH = os.path.join(basedir, "display", "drivers", "parallel_drivers")
2024-05-12 02:00:26 +02:00
TEMPORARY_FOLDER = os.path.join(basedir, "tmp")
VCOM = "2.0"
2024-07-18 01:43:25 +02:00
# /boot/settings.json is path on older releases, while the latter is more the more recent ones
SETTINGS_JSON_PATHS = ["/boot/settings.json", "/boot/firmware/settings.json"]