Setting the VSCode Pythonpath

When editing a Python-Package in Vscode the debugger will set the Pythonpath to the current file by default, even though it should be the package root most of the time for things to work correctly. When that happens the launch.json below fixes the problem.

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "env": {
                "PYTHONPATH": "${workspaceFolder}"
            }
        }
    ]
}