[svn r56743] port path-fix 56724

--HG--
branch : trunk
This commit is contained in:
hpk 2008-07-23 17:30:43 +02:00
parent c7da98d7a7
commit 7682e0801a
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ def addbindir2path():
reg = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE)
key = r"SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
path = get_registry_value(reg, key, "Path")
if bindir in path:
return
path += ";" + bindir
print "Setting PATH to:", path
set_registry_value(reg, key, "Path", path)