Hi!
Thanks for WinPy!
I noticed that adding too many paths in winpython.ini makes it unusable and settings cannot be read.
Environment:
OS: Windows 10,
WinPython: WinPy64-3890
To reproduce, try to add the lines below to your winpython.ini:
#LONG_PATH_ADD1=QWERTY\UIOP\ASDFGHJKL\ZXCVBNM\qwerty\uiop\asdfghjkl\zxcvbnm
#LONG_PATH_ADD2=123QWERTY\UIOP\ASDFGHJKL\ZXCVBNM\qwerty\uiop\asdfghjkl\zxcvbnm
#PATH=%PATH%;LONG_PATH_ADD1
#PATH=%PATH%;LONG_PATH_ADD2
ZZ_PATH_CHK = %HOME%local_pkgs
Then start WinPython Command Prompt.exe and at the command prompt type set.
This should output all of the environment variables, which are set.
ZZ_PATH_CHK should appear near the bottom of the screen.
Uncomment the commented out lines and repeat.
Depending on the length of your OS PATH variable, now you will likely not see ZZ_PATH_CHK, i.e.
it cannot be set, if the PATH is too long.
If you still see it, try adding a few more lines to make a longer PATH.
On my machine, it seems that the limit of PATH length before breaking down of winpython.ini is somewhere about 1780 characters.
I haven't investigated the exact number, but that is less than the number of 2048, given in some online forums: Path environment variable - which is otherwise limited to 2048 characters (while a single path has an historical limit of 206 characters)
I resolved this by removing from my OS path of some software, which I don't often use. But there must be some more elegant solution.
Is there anything that can be done?
Hi!
Thanks for WinPy!
I noticed that adding too many paths in
winpython.inimakes it unusable and settings cannot be read.Environment:
OS: Windows 10,
WinPython: WinPy64-3890
To reproduce, try to add the lines below to your
winpython.ini:Then start
WinPython Command Prompt.exeand at the command prompt typeset.This should output all of the environment variables, which are set.
ZZ_PATH_CHKshould appear near the bottom of the screen.Uncomment the commented out lines and repeat.
Depending on the length of your OS
PATHvariable, now you will likely not seeZZ_PATH_CHK, i.e.it cannot be set, if the PATH is too long.
If you still see it, try adding a few more lines to make a longer PATH.
On my machine, it seems that the limit of PATH length before breaking down of
winpython.iniis somewhere about 1780 characters.I haven't investigated the exact number, but that is less than the number of 2048, given in some online forums: Path environment variable - which is otherwise limited to 2048 characters (while a single path has an historical limit of 206 characters)
I resolved this by removing from my OS path of some software, which I don't often use. But there must be some more elegant solution.
Is there anything that can be done?