nextstrain / fauna

RethinkDB database to support real-time virus analysis
GNU Affero General Public License v3.0
33 stars 13 forks source link

Fix imports from parent modules in vdb and tdb for python 3 #92

Closed huddlej closed 5 years ago

huddlej commented 5 years ago

The original fix for importing from parent modules in python 2 did not work for python 3. The ideal solution would be to reorganize fauna to avoid this type of import, but this commit implements a short-term solution that works in both python 2 and 3 by prepending the fauna directory to the python path.