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

@ -2,7 +2,7 @@ from typing import Dict, List, NamedTuple, Optional, Sequence, Any
from pathlib import Path
from datetime import datetime
from .common import group_by_key, the, cproperty, PathIsh, import_file
from .common import group_by_key, the, cproperty, PathIsh
try:
@ -33,6 +33,7 @@ class Config(NamedTuple):
def hypexport(self):
hp = self.hypexport_path_
if hp is not None:
from .common import import_file
return import_file(Path(hp) / 'model.py', 'hypexport.model')
else:
global Model