core: add base cachew directory
This commit is contained in:
parent
10a8ebaae4
commit
c54d85037c
4 changed files with 24 additions and 2 deletions
|
@ -13,6 +13,7 @@ from typing import Iterable, NamedTuple, Sequence, Set
|
|||
from ..common import mcachew, LazyLogger, get_files
|
||||
|
||||
|
||||
from ..core.cachew import cache_dir
|
||||
from my.config import bluemaestro as config
|
||||
|
||||
|
||||
|
@ -28,7 +29,7 @@ class Measurement(NamedTuple):
|
|||
temp: float
|
||||
|
||||
|
||||
@mcachew(cache_path=config.cache_path)
|
||||
@mcachew(cache_path=cache_dir() / 'bluemaestro.cache')
|
||||
def measurements(dbs=inputs()) -> Iterable[Measurement]:
|
||||
emitted: Set[datetime] = set()
|
||||
for f in dbs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue