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
parent f31ff71e6f
commit 9fe5c8e670
37 changed files with 142 additions and 110 deletions

View file

@ -3,7 +3,7 @@ from typing import Optional
from .common import get_files
from mycfg import paths
from my.config import google as config
from .kython.kompress import kopen
@ -12,7 +12,7 @@ def get_last_takeout(*, path: Optional[str]=None) -> Path:
Ok, sometimes google splits takeout into two zip archives
I guess I could detect it (they've got 001/002 etc suffixes), but fornow that works fine..
"""
for takeout in reversed(get_files(paths.google.takeout_path, glob='*.zip')):
for takeout in reversed(get_files(config.takeout_path, glob='*.zip')):
if path is None:
return takeout
else: