ok, seems that import_dir is a bit saner
This commit is contained in:
parent
44aa062756
commit
0f80e9d5e6
3 changed files with 16 additions and 3 deletions
|
@ -24,8 +24,8 @@ class demo(user_config):
|
|||
def external_module(self):
|
||||
rpath = self.external
|
||||
if rpath is not None:
|
||||
from .cfg import set_repo
|
||||
set_repo('external', rpath)
|
||||
from .core.common import import_dir
|
||||
return import_dir(rpath)
|
||||
|
||||
import my.config.repos.external as m # type: ignore
|
||||
return m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue