core/modules: get rid of set_repo uses, it was just complicating everythin

This commit is contained in:
Dima Gerasimov 2020-05-18 21:33:52 +01:00
parent 0f80e9d5e6
commit 403ec18385
5 changed files with 19 additions and 17 deletions

View file

@ -26,11 +26,11 @@ class hypothesis(user_config):
def dal_module(self):
rpath = self.hypexport
if rpath is not None:
from .cfg import set_repo
set_repo('hypexport', rpath)
import my.config.repos.hypexport.dal as dal
return dal
from .core.common import import_dir
return import_dir(rpath, '.dal')
else:
import my.config.repos.hypexport.dal as dal
return dal
from .core.cfg import make_config