if userpath is run on Windows, it breaks the Path environment variable by changing the HKCU\Environment\Path value from a REG_EXPAND_SZ type to a REG_SZ type. This will cause all paths that contain environment variables within the path to not be expanded and therefore not searched.
Describe the bug
if
userpath
is run on Windows, it breaks thePath
environment variable by changing theHKCU\Environment\Path
value from aREG_EXPAND_SZ
type to aREG_SZ
type. This will cause all paths that contain environment variables within the path to not be expanded and therefore not searched.How to reproduce
Expected behavior
Leave the
HKCU\Environment\Path
value as aREG_EXPAND_SZ
type.Suggested Solution
In
interface.py
, changewinreg.SetValueEx(key, 'PATH', 0, winreg.REG_SZ, new_path)
towinreg.SetValueEx(key, 'PATH', 0, winreg.REG_EXPAND_SZ, new_path)
Userpath version
1.4.0