'vscode does not seem to set my python environment variables

I've tried several things to set the environment variables and none of them have worked for me so far.

I tried

  • adding the "env" object to the project_folder/vscode/launch.json file
  • tried creating a ".env" file under the project_folder/.venv folder

Still can't seem to read those values from within my main.py program.

Any ideas where I've gone wrong?

,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source