Coverage for src / competitive_verifier / config.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-03-05 16:00 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-03-05 16:00 +0000
1import os
2import pathlib
4COMPETITIVE_VERIFY_CONFIG_PATH = "COMPETITIVE_VERIFY_CONFIG_PATH"
7def get_config_dir():
8 return pathlib.Path(
9 os.getenv(COMPETITIVE_VERIFY_CONFIG_PATH, ".competitive-verifier")
10 )
13def get_cache_dir():
14 return get_config_dir() / "cache"
17def get_problem_cache_dir() -> pathlib.Path:
18 return get_cache_dir() / "problems"