I have searched and not found a good answer. I have something very simple:
src/image.py
test/test.py
test.py is intended to test image.py so it needs to import it. It would seem logical that one would simply do
import ../src/image
or
import ..src.image
or
from ..src import image
But none of those work. When I search the forum I get lots of complicated answers, some of which require python to be started in a special mode to work. But why? It is just a file. The fact that it happens to be located in another directory, even one whose Linux path begins with .. should be irrelevant?
Please help me understand, and if there is a simpler way to do this, please help me find it ;-)