hacks to work around python3.6 imports; add set_repo

This commit is contained in:
Dima Gerasimov 2020-04-19 12:35:45 +01:00 committed by karlicoss
parent e884d90ea0
commit 4a83ff4864
2 changed files with 21 additions and 1 deletions

View file

@ -17,3 +17,11 @@ After that, you can set config attributes:
from . import init
import my.config as config
def set_repo(name: str, repo):
from .init import assign_module
from . common import import_from
module = import_from(repo, name)
assign_module('my.config.repos', name, module)