Created
June 5, 2024 23:15
-
-
Save MrDOS/cd84980eefe201e77bf2e6bf58f2a4c2 to your computer and use it in GitHub Desktop.
How do you influence a VSCode launch environment?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch", | |
"type": "debugpy", | |
"request": "launch", | |
"program": "${file}", | |
"console": "integratedTerminal" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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