17 lines
664 B
Python
17 lines
664 B
Python
"""Where The Kurgan keeps its settings and logs."""
|
|
|
|
import os
|
|
|
|
_LOCAL = os.environ.get("LOCALAPPDATA", os.path.expanduser("~"))
|
|
|
|
# KURGAN_DATA_DIR moves settings and logs elsewhere (used by --demo runs next to the real service).
|
|
DATA_DIR = os.environ.get("KURGAN_DATA_DIR") or os.path.join(_LOCAL, "Kurgan")
|
|
LOG_PATH = os.path.join(DATA_DIR, "kurgan.log")
|
|
SETTINGS_PATH = os.path.join(DATA_DIR, "settings.json")
|
|
|
|
# The TT LCD Dashboard's folder; its fan and lighting settings are imported once on first start.
|
|
LEGACY_DIR = os.path.join(_LOCAL, "TTLcdDashboard")
|
|
|
|
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
PROJECT_DIR = os.path.dirname(PACKAGE_DIR)
|