Doppler environment variables not available when launching Python script through VSCode

I’ve followed the instructions here, but Doppler environment variables don’t seem to be available to my Python script that I’m launching through VSCode. When I print out os.environ, none of my Doppler environment variables seem to be there.

Here is the launch.json I am using:

  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Debug File",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "env": {
        "DOPPLER_ENV": "dev" // Enable doppler-env to inject env vars
      },
      "console": "integratedTerminal",
      "justMyCode": true
    },
    {
      "name": "Python: Current File",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "env": {
        "DOPPLER_ENV": "dev" // Enable doppler-env to inject env vars
      },
      "console": "integratedTerminal",
      "justMyCode": true,
    }
  ]
}

Hi @david!

Welcome to the Doppler Community!

Have you taken a look at the guide we have for configuring VS Code for this?

There are a couple extra steps you need to do to get it working. After doing that, you should be good to go! Let me know if you still have trouble after following that guide.

Regards,
-Joel

I did follow that guide (installing doppler-env and updating the launch config) but the environment variables still don’t seem to be available after doing that…