Here's my directory structure:
fire/
__init__.py
bls/
__init__.py
bls.py <-- I am here
iris/
__init__.py
iris.py
I use this structure to have a separate git repository for bls and iris.
I used the this example from the documentation which says that from subpackage1/moduleX.py this is a valid import: from ..subpackage2.moduleZ import eggs
However, when I try:
bls.py
from ..iris.iris import *
I get this error: Attempted relative import beyond top-level package.
I've tried various other import statements as well with no success.
What am I doing wrong? Should I restructure my package? If so, how?