Skip to content

Ability to add custom environment variables in settings.json #4502

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

Closed
DonJayamanne opened this issue Feb 22, 2019 · 0 comments
Closed

Ability to add custom environment variables in settings.json #4502

DonJayamanne opened this issue Feb 22, 2019 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@DonJayamanne
Copy link

DonJayamanne commented Feb 22, 2019

Related to #924

Assume source code is in src directory:

  • Intellisense, tests, debugging, etc will not work

Solution:

  • Ensure src is in PYTHONPATH
  • For this we need to create a .env file with an entry for PYTHONPATH

Problems

  • .env files are not committed into the repo

Proposal:

  • Provide ability to defined environment variables in settings.json just as we do in launch.json

Use case - PTVSD project

@DonJayamanne DonJayamanne added feature-request Request for new features or functionality feature-* labels Feb 22, 2019
@brettcannon brettcannon removed their assignment Feb 26, 2019
@ghost ghost removed the needs decision label Mar 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants