diff options
author | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-08-26 18:37:22 +0200 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-09-07 00:28:31 +0200 |
commit | ae215592fc0b9c349e95373347ec8b0a5f350885 (patch) | |
tree | d28c09e892beda6ef00176a2a7af37fcd354be00 /python/knot_resolver/manager | |
parent | python: knot_resolver_manager module renamed to knot_resolver (diff) | |
download | knot-resolver-ae215592fc0b9c349e95373347ec8b0a5f350885.tar.xz knot-resolver-ae215592fc0b9c349e95373347ec8b0a5f350885.zip |
python: knot_resolver_build_options module added
Diffstat (limited to 'python/knot_resolver/manager')
-rw-r--r-- | python/knot_resolver/manager/constants.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/knot_resolver/manager/constants.py b/python/knot_resolver/manager/constants.py index 832d3fa9..5a7317a5 100644 --- a/python/knot_resolver/manager/constants.py +++ b/python/knot_resolver/manager/constants.py @@ -5,10 +5,10 @@ from typing import TYPE_CHECKING, Optional # Install config is semi-optional - only needed to actually run Manager, but not # for its unit tests. -if importlib.util.find_spec("knot_resolver"): - import knot_resolver # type: ignore[import-not-found] +if importlib.util.find_spec("knot_resolver_build_options"): + import knot_resolver_build_options # type: ignore[import-not-found] else: - knot_resolver = None + knot_resolver_build_options = None if TYPE_CHECKING: from knot_resolver.manager.config_store import ConfigStore @@ -26,13 +26,13 @@ MAX_WORKERS = 256 def kresd_executable() -> Path: - assert knot_resolver is not None - return knot_resolver.sbin_dir / "kresd" + assert knot_resolver_build_options is not None + return knot_resolver_build_options.sbin_dir / "kresd" def kres_gc_executable() -> Path: - assert knot_resolver is not None - return knot_resolver.sbin_dir / "kres-cache-gc" + assert knot_resolver_build_options is not None + return knot_resolver_build_options.sbin_dir / "kres-cache-gc" def kresd_user(): |