core.common: move away import related stuff to my.core.utils.imports
moving without backward compatibility, since it's extremely unlikely they are used for any external modules in fact, unclear if these methods still have much value at all, but keeping for now just in case
This commit is contained in:
parent
f4214807a3
commit
90635c1d67
7 changed files with 44 additions and 43 deletions
|
@ -101,7 +101,7 @@ Please install {' '.join(requires)} as PIP packages (see the corresponding READM
|
|||
def _get_dal(cfg, module_name: str):
|
||||
mpath = getattr(cfg, module_name, None)
|
||||
if mpath is not None:
|
||||
from .common import import_dir
|
||||
from .utils.imports import import_dir
|
||||
|
||||
return import_dir(mpath, '.dal')
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue