summaryrefslogtreecommitdiffstats
path: root/python/knot_resolver/constants.py.in
blob: 0f1c3a882f6186072c6ee7faf088d00c16c99dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from pathlib import Path

VERSION = "@version@"
USER = "@user@"
GROUP = "@group@"

# dirs paths
RUN_DIR = Path("@run_dir@")
ETC_DIR = Path("@etc_dir@")
SBIN_DIR = Path("@sbin_dir@")
CACHE_DIR = Path("@cache_dir@")

# files paths
CONFIG_FILE = ETC_DIR / "config.yaml"
API_SOCK_FILE = RUN_DIR / "kres-api.sock"

# executables paths
KRESD_EXECUTABLE = SBIN_DIR / "kresd"
KRES_CACHE_GC_EXECUTABLE = SBIN_DIR / "kres-cache-gc"