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

@ -1,4 +1,7 @@
#!/usr/bin/env python3
'''
Foursquare/Swarm checkins
'''
from datetime import datetime, timezone, timedelta
from itertools import chain
from pathlib import Path
@ -9,14 +12,14 @@ from pathlib import Path
# TODO pytz for timezone???
from .common import get_files, LazyLogger
from my.config import foursquare as config
logger = LazyLogger('my.foursquare')
logger = LazyLogger(__package__)
def _get_exports() -> List[Path]:
from mycfg import paths
return get_files(paths.foursquare.export_path, '*.json')
return get_files(config.export_path, '*.json')
class Checkin: