BradenM / BradenM/micropy-cli

Set PYTHONPATH in VS Code Settings

Open
#76 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
337
Forks
29
PR merge metrics
No merged PRs in 30d

Description

If project uses VS Code integration, render `terminal.integrated.env.{PLATFORM}` setting in `.vscode/settings.json` with `PYTHONPATH`containing paths to dependencies.

This will allow users to import these dependencies from the VS Code integrated terminal just like in their code.

See [Use of the PYTHONPATH variable](https://code.visualstudio.com/docs/python/environments#_use-of-the-pythonpath-variable) for more details.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the VS Code integration that renders `.vscode/settings.json` and review the linked VS Code documentation on `PYTHONPATH`. Determine how dependency paths are gathered and how platform-specific `terminal.integrated.env.{PLATFORM}` settings are emitted. Done means the generated settings expose those dependencies through `PYTHONPATH` in the integrated terminal.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.