I'm building a package using poetry and have created my package name and venv. Using poetry new package-name
From the command line i can run poetry run package-name --flags
and it will run my cli.py and references to appropriate imports etc.
My cli.py has from package-name import module
. Everything works.
However in VS Code i'm trying to get it to run ^^ this command from the debugger interface declaring the appropriate parameters in the launch and settings json.
I had thought it would be something like
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${workspaceRoot}/package-name/cli.py",
"args": [
"removeuser",
"--ini",
"../../ini/test.ini"
],
"console": "integratedTerminal"
}
]
}
but this doesn't work. Any ideas on what the proper configuration is?
Thanks in advance.