diff options
Diffstat (limited to 'python/knot_resolver/constants.py.in')
-rw-r--r-- | python/knot_resolver/constants.py.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/knot_resolver/constants.py.in b/python/knot_resolver/constants.py.in index 0f1c3a88..35c25ac6 100644 --- a/python/knot_resolver/constants.py.in +++ b/python/knot_resolver/constants.py.in @@ -1,3 +1,4 @@ +import importlib.util from pathlib import Path VERSION = "@version@" @@ -17,3 +18,11 @@ API_SOCK_FILE = RUN_DIR / "kres-api.sock" # executables paths KRESD_EXECUTABLE = SBIN_DIR / "kresd" KRES_CACHE_GC_EXECUTABLE = SBIN_DIR / "kres-cache-gc" + +WATCHDOG_LIB = False +if importlib.util.find_spec("watchdog"): + WATCHDOG_LIB = True + +PROMETHEUS_LIB = False +if importlib.util.find_spec("prometheus_client"): + PROMETHEUS_LIB = True |