Can i post:
from __future__ import absolute_import
inside __init__.py
at the top level dir on my package and guarantee that absolute_import will apply to all code that runs inside that package or subpackages?
Or should I put this directive in every model that does absolute imports?
I support the Python package, and I try to make my code as easy as possible to upgrade to Python3 when the time comes. I cannot do this right away because my dependencies are not yet in Python3.
source share