How Do I Add Environment Variables to launch.json in VSCode?
Set variables in the env object of a VS Code launch configuration, or point envFile to a local .env file for values shared across debug sessions.
Set variables in the env object of a VS Code launch configuration, or point envFile to a local .env file for values shared across debug sessions.
Set cwd in your VS Code Python launch configuration so relative paths resolve from the project folder or another directory you choose.