I have a project structured like this:
. └── myapp ├── app.py ├── models │ ├── hello.py │ └── world.py └── requirements.txt
The error is coming from pylint. You need to add this line into settings.json file (VS Code):
"python.linting.pylintArgs": ["--init-hook", "import sys; sys.path.append('')"],