move init.py to my.core

This commit is contained in:
Dima Gerasimov 2020-05-06 22:20:00 +01:00
parent 9d5d368891
commit b7e5640f35
3 changed files with 3 additions and 6 deletions

View file

@ -12,15 +12,12 @@ After that, you can set config attributes:
export_path='/path/to/twitter/exports',
)
"""
# TODO later, If I have config stubs that might be unnecessary too..
from . import init # todo not sure if this line is necessary? the stub will trigger it anyway
# todo why do we bring this into scope? don't remember..
import my.config as config
def set_repo(name: str, repo):
from .init import assign_module
from .core.init import assign_module
from . common import import_from
module = import_from(repo, name)

View file

@ -1,5 +1,5 @@
# TODO ok, this thing should trigger .cfg import presumably??
from .. import init
from ..core import init
# TODO maybe, reuse mycfg_template here?