-
Notifications
You must be signed in to change notification settings - Fork 710
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
emsdk activate latest --permanent
does not add Python's executable to PATH
#1315
Comments
If you need details, here are they. After I used the above stated command, it added three (3) following records into my user-level
For some reason, the Python's folder which is |
We deliberately don't add our internal version of python to the user's PATH, but instead set the EMSDK_PYTHON environment variable so that our launchers can use that to find our internal version of python. The version of python we ship with emsdk is really designed as an implementation detail of emsdk and not designed to be used to other purposes. Is there some reason why you want/need it to be in your PATH? |
No, there is no special reason for that. I can use an external Python. I just thought that it should be in |
Controversy in environment variables. There is a controversy. In this issue 1315 (#1315) you say that python (EMSDK_PYTHON) is used only for internal purposes and thus it is not added to PATH variable. But at the same time nodejs (EMSDK_NODE) is used for the same internal purposes but it is actually added to PATH variable.
|
The situation with node is a little more completed. Historically we always added it to the PATH so that folk could run the output of emcc (e.g. for running test) so there is at least some need to node that is not internal. However a lot of foks were getting confused because we were clobber their existing version of node in their PATH. As a compromise we settled on a solution where node is added, but only if it doesn't already exist in the users PATH: #1189. i.e. if you install your own version of node emsdk will stop adding node to your path. |
As stated in the title,
the
emsdk activate latest --permanent
command does not add Python's executable to thePATH
environment variable.The text was updated successfully, but these errors were encountered: