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 @@ from typing import NamedTuple
from datetime import datetime
import pytz
from mycfg.repos.goodrexport import dal as goodrexport
from mycfg import paths
from my.config.repos.goodrexport import dal as goodrexport
from my.config import goodreads as config
def get_model():
sources = list(sorted(paths.goodrexport.export_dir.glob('*.xml')))
sources = list(sorted(config.export_dir.glob('*.xml')))
model = goodrexport.DAL(sources)
return model