I am creating a python project with the following directory structure:
demos
demo1.py
kernels
rbf.py
___init__.py
The file rbf.py defines a class called RBF. The __init__.py file in the kernels directory contains the following line:
from .rbf import *
Now the demo1.py contains the following import:
from kernels import RBF
However, this fails with
ImportError: No module named kernels
So the demos folder does not see the kernels package directory. I am at a loss as to what to do to make this work.