fix dynamic Hypothesis import

This commit is contained in:
Dima Gerasimov 2020-02-04 21:07:12 +00:00
parent e3b3b12ff1
commit 2ea838827b

View file

@ -41,8 +41,11 @@ class Config(NamedTuple):
def hypexport(self):
hp = self.hypexport_path_
if hp is not None:
# TODO hmmm
# TODO that doesn't seem to work (PYTHONPATH=src with_my pytest tests/server_test.py::test_query_instapaper)
# I guess I need to think about it.. shouluud I just rely on mycfg for setting these paths?
from .common import import_file
return import_file(Path(hp) / 'dal.py', 'hypexport.dal')
return import_file(Path(hp) / 'dal.py', 'mycfg.repos.hypexport.dal') # TODO meh...
else:
global DAL
global Highlight