use my.config instead of mycfg; minor cleanups and docstrings

This commit is contained in:
Dima Gerasimov 2020-04-12 00:18:48 +01:00 committed by karlicoss
parent f31ff71e6f
commit e5b3a1e91e
37 changed files with 142 additions and 110 deletions

View file

@ -4,12 +4,12 @@ Kobo e-ink reader: annotations and reading stats
from typing import Callable, Union, List
from mycfg import paths
from mycfg.repos.kobuddy.src.kobuddy import *
from my.config import kobo as config
from my.config.repos.kobuddy.src.kobuddy import *
# hmm, explicit imports make pylint a bit happier..
from mycfg.repos.kobuddy.src.kobuddy import Highlight, set_databases, get_highlights
from my.config.repos.kobuddy.src.kobuddy import Highlight, set_databases, get_highlights
set_databases(paths.kobuddy.export_dir)
set_databases(config.export_dir)
# TODO maybe type over T?
_Predicate = Callable[[str], bool]