fix .paths imports
This commit is contained in:
parent
3ee2deecae
commit
0415ea2560
5 changed files with 13 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue