src/main.py
import multiprocessing
from src.mypackage.moduleA import functionA
src/mypackage/moduleA
import moduleB
src/mypackage/moduleB
#helper functions...
Why is it that running main.py leads to a ModuleNotFoundError: no module named moduleB when it tries to resolve import moduleB in src/mypackage/moduleA?
I've tried to look it up online but i can't make sense of the explanation. It seems to do with the fact that there's a difference between running main.py directly and running main.py as part of the package instead. Would love if someone could help clarify what's going on.