-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variable definitions file substitution does not work when debugging a Python file #159
Comments
How are you running this command. Are you using |
I'm running it under debugger with this launch configuration: {
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "blah",
"console": "integratedTerminal"
} |
This works if you do However, this is not standard syntax. We should probably follow |
I opened microsoft/vscode-docs#3856 to track the documentation update that is required. Related: microsoft/vscode-python#11812 |
@int19h This actually does not work if specified in a |
debugpy does not have its own variable substitution logic - it's entirely a VSCode thing. Ditto for "envfile" - debugpy expects to receive everything already fully expanded and substituted in "env". |
Environment data
Expected behaviour
According to documentation the value of any existing environment variable could be used when defining an environment variables.
Actual behaviour
Value of PATH environment variable is not being substituted.
Steps to reproduce:
.env
file with a single linePATH="${PATH};Blah-blah-blah"
.PATH
value withprint(os.environ.get('PATH'))
;Blah-blah-blah
gets printed.The text was updated successfully, but these errors were encountered: