I have a folder xyz which contains two files ab.py and cd.py. Im trying to import cd.py in ab.py file.
Below is the folder structure:
/xyz
ab.py
cd.py
I have to import cd to ab
when i do
from . import cd
This gives me error as: Attempted relative import beyond top-level package