[py-svn] r56743 - in py: dist/py/misc trunk/py/misc

hpk at codespeak.net hpk at codespeak.net
Wed Jul 23 17:30:44 CEST 2008


Author: hpk
Date: Wed Jul 23 17:30:43 2008
New Revision: 56743

Modified:
   py/dist/py/misc/_dist.py
   py/trunk/py/misc/_dist.py
Log:
port path-fix 56724


Modified: py/dist/py/misc/_dist.py
==============================================================================
--- py/dist/py/misc/_dist.py	(original)
+++ py/dist/py/misc/_dist.py	Wed Jul 23 17:30:43 2008
@@ -100,6 +100,8 @@
     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)

Modified: py/trunk/py/misc/_dist.py
==============================================================================
--- py/trunk/py/misc/_dist.py	(original)
+++ py/trunk/py/misc/_dist.py	Wed Jul 23 17:30:43 2008
@@ -100,6 +100,8 @@
     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)



More information about the pytest-commit mailing list