Pylance, by default, includes the root path of your workspace. If you want to include other subdirectories as import resolution paths, you can add them using the python.analysis.extraPaths
setting for the workspace.
- In VS Code press
<ctrl> + <,>
to open Settings. - Type in
python.analysis.extraPaths
- Select “Add Item”
- Type in the path to your library
/home/andylu/Dokumente/Allgemeines_material/Sonstiges/Programming/Python/Scripts/