The workspace folder is myapp
and the folder structure is the following:
myapp/
main.py
__init__.py
module/
__init__.py
math.py
In the top level workspace folder in main.py
I would like to import the math package using an absolute path like so:
from myapp.module import math
This throws an error "No module named 'myapp'" and the pylance addon also fails to find the package. Everything works if i remove the myapp prefix:
from module import math
How do i resolve this in VSCode?