Ok, so I ended up creating a 'debug.py' file in the directory containing my
service projects, containing:
import sys
from nameko.cli.main import main
main()
Then, in the launch.json for each of my projects, I have:
"pythonPath": "${workspaceFolder}\\env\\Scripts\\python.exe",
"program": "${workspaceFolder}\\..\\debug.py",
"args": [
"run",
"service",
"--config",
"config.yml"
],
"cwd": "${workspaceFolder}"
This seems to work fine -- environment-variable substitution when
processing config.yml works as expected.