I have directory structure following :
/Test/
/lib/
lib1.py
/main/
main.py
and my main.py
importing the class library which are defined in lib1.py
using
from ..lib.lib1 import library
It gives this error:
ValueError: attempted relative import beyond top-level package
How can fix this?