hacks to work around python3.6 imports; add set_repo
This commit is contained in:
parent
e884d90ea0
commit
4a83ff4864
2 changed files with 21 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue