From 2ea838827b62400f78cd1d4f66bdc7f7ad56c0d1 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Tue, 4 Feb 2020 21:07:12 +0000 Subject: [PATCH] fix dynamic Hypothesis import --- my/hypothesis.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/my/hypothesis.py b/my/hypothesis.py index ede8f86..57efbdd 100644 --- a/my/hypothesis.py +++ b/my/hypothesis.py @@ -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