convert-current-file-to-module-style READMEOverviewThe Features
Use in launch.jsonAdd this to your launch.json to enable running your project as a package from any main inside while using relative imports: { "name": "Launch Current File as Package", "type": "debugpy", "request": "launch", "module": "${command:extension.commandvariable.file.relativeDirDots}.${fileBasenameNoExtension}", "cwd": "${workspaceFolder}", "console": "integratedTerminal", "env": { "PYTHONPATH": "${workspaceFolder}", }, "justMyCode": true } |