Skip to content
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

Set the user-installed bin directory when "activating" a terminal #1765

Closed
brettcannon opened this issue May 29, 2018 · 2 comments
Closed

Set the user-installed bin directory when "activating" a terminal #1765

brettcannon opened this issue May 29, 2018 · 2 comments
Labels
area-environments Features relating to handling interpreter environments area-terminal feature-request Request for new features or functionality

Comments

@brettcannon
Copy link
Member

E.g. if you choose your system-installed Python and then run Create Terminal, we should make sure that .local/bin (or whatever the appropriately directory is for your OS) is on PATH.

@brettcannon brettcannon added feature-request Request for new features or functionality area-terminal needs decision labels May 29, 2018
@DonJayamanne
Copy link

DonJayamanne commented May 29, 2018

Sounds like a resurrection of #900

@brettcannon brettcannon changed the title Set the user-installed bin directory when running Create Terminal for global interpreters Set the user-installed bin directory when "activating" a terminal Oct 17, 2018
@gramster gramster added the area-environments Features relating to handling interpreter environments label Oct 10, 2019
@luabud luabud closed this as completed Apr 21, 2020
@ghost ghost removed the needs PR label Apr 21, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2020
@DonJayamanne
Copy link

I've implemented a solution in my personal extension and the solution is as follows:

Create a temporary folder

  • Add the files python.cmd into the above folder if on windows, else add python
    the contents of the above file is to launch the actual python file (hence the file created will be specific to each python enviromment), same with the folder
  • Update the Path variable (either when you create or update the PATH variable in existing terminals) in the terminal to include the above directory
  • Now when you run python it will run the right executable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments area-terminal feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants