The folder is something like:
/workspace
dosomething.py
/pkg
__init__.py
a.py
b.py
where i've added
sys.path.append('/workspace')
import a
a.func()
in dosomething.py, and
from .a import a
from .b import b
in __init__.py. And a.py imports b to use some functions in b. After running, the error is:
ModuleNotFoundError: No module named 'b'
And the error occurs when runs to import b in a.py. I want to know if i've missed some steps or there is any error in it? Thanks for any reply!