I know there are some question about this problem : Python files - import from each other
But this solution doesn't work for me.
This is directory structure:
├── tester.py
└── utility
├── __init__.py
├── analysis.py
└── util.py
__init__.py
from .analysis import *
from .util import *
analysis.py
import util
def funcA():
print("a")
util.py
import analysis
def funcB():
print("b")
But this occur,
ImportError: No module named 'util'
I want to main __init__.py
the way I defined.
Is there any way I can fix this problem?