Skip to content

Activated environments not resolving PYTHONPATH=./ to a fully qualified value #20784

@DonJayamanne

Description

@DonJayamanne

Assume you have a .env file with the following contents

PYTHONPATH=./

When you debug a Python file, then the env variable is resolved and the PYTHONPATH value is fully resolved to the full path of the workspace. I.e. Workspace path is now in the current Python path (sys.path)

However when Jupyter extension gets the activated env variables the above value is not resolved, as a result the workspace directory is not added to the PATH or PYTHONPATH value in the env variables.

Looks like Python ext only resolves this for debugging of python code and not when returning activated variables.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions