[issue30374] Make win_add2path.py take effect without having to log off

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: -ctypes versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-18 Thread neeverett
Changes by neeverett : -- pull_requests: +1740 ___ Python tracker ___ ___

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-16 Thread neeverett
neeverett added the comment: I think the original author adds the relative path "%APPDATA%..." with the intention to keep it effective even when the set path of APPDATA changes. However that compulsively changes the type of PATH var to REG_EXPAND_SZ. It is reasonable that the type of PATH var

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread Paul Moore
Paul Moore added the comment: The reasons for not adding Python to PATH by default are complex. We've tried both ways and neither is 100% satisfactory. The default install is a per-user install. If we added Python to PATH, then as a user setting it would come *after* the system part of PATH.

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread neeverett
neeverett added the comment: I didn't noticed that there are other problems with this script. So maybe it needs a complete rewrite instead. But I doubt if it should be simply deleted. Actually I think there is a litte problem with the installer: "add Python to PATH" is not selected by default

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread Eryk Sun
Eryk Sun added the comment: Are people actually using this script? Maybe it should simply be removed. I see a few problems with it [1]: * A default value of "%PATH%" is wrong. That causes the system PATH to be concatenated with itself. * For the user scripts directory, replacing

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread neeverett
Changes by neeverett : -- pull_requests: +1688 ___ Python tracker ___ ___

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-15 Thread neeverett
New submission from neeverett: I was trying to add Python to Windows PATH and found this tool. But after I ran it and restarted the Command Prompt, nothing seemed to be changed: Command Prompt still didn't recognize Python codes. Finally I got it done by manually setting the environment