diff options
author | BonfaceKilz | 2020-07-21 12:36:06 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-07-24 03:47:56 +0300 |
commit | b8e17aee9000943e0fd379b5ef006d76314733e4 (patch) | |
tree | 1fce4a70827882bda0b7a24e1ae7bde23500a635 /wqflask/utility | |
parent | 8e3756b8b8094c5d025da31c54c1d0d95a55b0dc (diff) | |
download | genenetwork2-b8e17aee9000943e0fd379b5ef006d76314733e4.tar.gz |
Add work-around for failed imports in unittest
* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app`
and the gn2 script will use `from wqflask import app`
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/tools.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index 77db5d53..37f9d8fe 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -5,7 +5,10 @@ import os import sys import json -from wqflask import app +try: + from wqflask import app +except ImportError: + from wqflask.wqflask import app # Use the standard logger here to avoid a circular dependency import logging |