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:
Dima Gerasimov 2024-08-14 11:28:50 +03:00
parent f4214807a3
commit 90635c1d67
7 changed files with 44 additions and 43 deletions

View file

@ -23,7 +23,7 @@ class demo(user_config):
def external_module(self):
rpath = self.external
if rpath is not None:
from .core.common import import_dir
from .core.utils.imports import import_dir
return import_dir(rpath)
import my.config.repos.external as m # type: ignore