fix .paths imports

This commit is contained in:
Dima Gerasimov 2019-12-21 09:48:07 +00:00
parent 3ee2deecae
commit 0415ea2560
5 changed files with 13 additions and 28 deletions

View file

@ -4,17 +4,13 @@ from typing import NamedTuple
from datetime import datetime
import pytz
from .. import paths
@lru_cache()
def goodrexport():
from ..common import import_file
return import_file(paths.goodrexport.repo / 'model.py')
from mycfg.repos.goodrexport import model as goodrexport
from mycfg import paths
def get_model():
sources = list(sorted(paths.goodrexport.export_dir.glob('*.xml')))
model = goodrexport().Model(sources)
model = goodrexport.Model(sources)
return model