From 7682e0801a44acdf7283f107baf64d388e308879 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 23 Jul 2008 17:30:43 +0200 Subject: [PATCH] [svn r56743] port path-fix 56724 --HG-- branch : trunk --- py/misc/_dist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/misc/_dist.py b/py/misc/_dist.py index cb34ae01e..52c33277f 100644 --- a/py/misc/_dist.py +++ b/py/misc/_dist.py @@ -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)