Skip to content

Instantly share code, notes, and snippets.

@MrDOS
Created June 5, 2024 23:15
Show Gist options
  • Save MrDOS/cd84980eefe201e77bf2e6bf58f2a4c2 to your computer and use it in GitHub Desktop.
Save MrDOS/cd84980eefe201e77bf2e6bf58f2a4c2 to your computer and use it in GitHub Desktop.
How do you influence a VSCode launch environment?
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
import os
if __name__ == '__main__':
if 'HOW_DID_THIS_GET_HERE' in os.environ:
print(os.environ['HOW_DID_THIS_GET_HERE'])
else:
print('missing environment variable')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment