-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setting the PYTHONPATH
with terminal.integrated.env.*
does not affect test discovery or debugging
#12085
Comments
For the debugging case, please make sure that As for test discovery, that doesn't run through the terminal, so those settings won't affect it. I have marked this as a feature request to have us pick up these settings and apply them when doing test discovery. |
EDIT: Setting |
@lsorber if you're up for it you can open an issue at https://github.com/microsoft/vscode-docs about documenting this for the debugger. |
Duplicate of #6544 |
(not actually a duplicate but we'll include this into the spec for #6544) |
Note for those struggling with getting a This object lets you explicitly set environment variables that will be added to the VS Code process to be used by the terminal on Windows. Generally leave this blank to let VS Code use your default ENV variables. I discovered So it should simply be |
Environment data
python.languageServer
setting: MicrosoftExpected behaviour
That setting
PYTHONPATH
to include asrc
directory withterminal.integrated.env.*
(see below) also affects (a) test discovery, and (b) interactive debugging in VS Code.Actual behaviour
src
cannot be imported.src
cannot be imported.Workarounds
PYTHONPATH=src
in a.env
file.Steps to reproduce:
Same steps to reproduce as in #11875, which is a related issue.
The text was updated successfully, but these errors were encountered: