-
Notifications
You must be signed in to change notification settings - Fork 315
Question about enviromental variables #48
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
Comments
Hi @petobens , You should have an example script in your
You can also launch
to get a dos windows with the previous script executed. |
Hi @stonebig , thanks for the quick reply. Let me first apologize for the fact that my following question is quite elementary but I can't get this to work. I want to permanently alter the |
well, There is them manual change of the path method, described here: Or there is this method, that I didn't try
Does anyone of this fit your problem ? |
@stonebig thanks for the references. I was able to set the user variable using the method described by the SO question (unfortunately I still have to set system variables manually because the
and since the official installer gives the user the option (during installation) to automatically add the python executable to the One last question: I installed jedi with by doing One again thanks for the help! |
Yes, packages are listed only if you use You can do |
Thanks for clarifying that point. Regarding my other question, will you consider adding an option to automatically add python to the path from within the winpython control panel (something the official python offers during installation ) ? Or do you want me to close this issue? |
I didn't have time to think about that part of winpython yet, so I have no opinion. You can keep it open. |
Ok. Thanks again for the help. |
Hi, I would like to see something like this as well. It is quite tedious to manually insert / update python in the PATH each time that I move from one version of winpython to the next. Please consider it. |
Being curious - is it that we are planning to do this in the future via changing the windows registry (http://stackoverflow.com/questions/2121795/programmatically-modifiy-environment-variables), or are we holding this off because chaning the registry will cause other bugs? PS: remember that we need to change HOME to settings dir as well... It's probably just me but I missed it earlier today. |
@yw5aj if I change/create a The only way I found to get I don't know what the standard python installation does but when I chose to add python to the path then I could use both Maybe this link is relevant. EDIT: I don't use vim in the cmd prompt and I therefore don't mind it doesn't work there. What I do want to point out that in order to use gvim I had to set explicitly the |
@petobens Thanks! That's a good point. It almost look like that we want this: When installing/configuring WinPython, we can select a irreversible option about whether to move the settings folder to the system %USERPROFILE% directory. Not sure whether we'd like to do that, but that would solve the Shawn |
@yw5aj sorry for the late reply. I don't know if the solution is to move the settings folder to the home directory (if I do that I believe that I can't open gvim or vim from the standard cmd prompt). What I (and others) want is just to have the option to add Winpython to the path env variable during installation (the way the regular python installer does). Hope @stonebig can implement this wanted feature. |
I still don't have a strong opinion on this and feel technically uncomfortable. |
Okay. No Problem! Thanks for the quick reply. |
Dear @stonebig I receive at least once a month an "angry" request from people that i have recommended them using WinPython due to this issue. The sequence of events is like this:
So, would it be possible to fix this once and for all? |
My suggestion of how this capability should work is this: A) The WinPython-installer on start-up checks existing PATH for locating a (win) B.a) If
and possibly add another one, whether to try and set this for all users). B.b) Otherwise, if no
C. Before exiting installer, if user had checked the above options, it will:
I still have one issue unresolved, what to do if a |
Hi @ankostis, What you suggest doesn't look a good idea to me. Maybe Winpython is not currently the right solution for your users / your use case. I didn't try it myself but maybe, maybe, pyzo would better fit your particular need ? |
I would think that the problem is nowodays solved per tweaking ./settings/winpython.ini |
I've installed winpython today and I have a doubt about setting environmental variables. I understand that winpython aims to be a portable distribution but I wanted to be able to run python code from the
cmd.exe
and also use vim. So I've added the following directories to my%PATH%
:Now I can run scripts from the regular command prompt but I'm not sure that what I've done is correct. Is there an automatic way of setting the path (I've registered the distribution but the path was not modified)? Should I add more directories besides the mentioned ones?
Strangely I can run vim from WInPython CommandPrompt but not from the regular cmd.exe (when using the official python distribution I could run vim from command prompt without problem). This leads me to believe that I might be missing something. Any help and guidance will be appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: