use my.config instead of mycfg; minor cleanups and docstrings
This commit is contained in:
parent
f31ff71e6f
commit
9fe5c8e670
37 changed files with 142 additions and 110 deletions
|
@ -1,11 +1,12 @@
|
|||
"""
|
||||
Module for pinboard.in bookmarks
|
||||
pinboard.in bookmarks
|
||||
"""
|
||||
from . import init
|
||||
|
||||
from .common import get_files
|
||||
|
||||
from mycfg.repos.pinbexport import dal as pinbexport
|
||||
from mycfg import paths
|
||||
from my.config.repos.pinbexport import dal as pinbexport
|
||||
from my.config import pinboard as config
|
||||
|
||||
# TODO would be nice to make interfaces available for mypy...
|
||||
Bookmark = pinbexport.Bookmark
|
||||
|
@ -13,7 +14,7 @@ Bookmark = pinbexport.Bookmark
|
|||
|
||||
# yep; clearly looks that the purpose of my. package is to wire files to DAL implicitly; otherwise it's just passtrhough.
|
||||
def dal():
|
||||
sources = get_files(paths.pinbexport.export_dir, glob='*.json')
|
||||
sources = get_files(config.export_dir, glob='*.json')
|
||||
model = pinbexport.DAL(sources)
|
||||
return model
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue