Update of /cvsroot/pywin32/pywin32/win32/scripts
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29773/win32/scripts
Modified Files:
Tag: py3k
setup_d.py
Log Message:
merge more .py changes from the trunk (via 2to3)
Index: setup_d.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/scripts/setup_d.py,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -C2 -d -r1.1.4.1 -r1.1.4.2
*** setup_d.py 26 Nov 2008 09:03:30 -0000 1.1.4.1
--- setup_d.py 11 Dec 2008 05:45:21 -0000 1.1.4.2
***************
*** 5,9 ****
import win32api
! import _winreg
import sys
import shutil
--- 5,9 ----
import win32api
! import winreg
import sys
import shutil
***************
*** 60,73 ****
assert os.path.isfile(dll_name), "Shouldn't get here if the file doesn't exist!"
try:
! key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "Software\\Python\\PythonCore\\%s\\Modules\\%s" % (sys.winver, mod_name))
! except _winreg.error:
try:
! key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "Software\\Python\\PythonCore\\%s\\Modules\\%s" % (sys.winver, mod_name))
! except _winreg.error:
print("Could not find the existing '%s' module registered in the registry" % (mod_name,))
usage_and_die(4)
# Create the debug key.
! sub_key = _winreg.CreateKey(key, "Debug")
! _winreg.SetValue(sub_key, None, _winreg.REG_SZ, dll_name)
print("Registered '%s' in the registry" % (dll_name,))
--- 60,73 ----
assert os.path.isfile(dll_name), "Shouldn't get here if the file doesn't exist!"
try:
! key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "Software\\Python\\PythonCore\\%s\\Modules\\%s" % (sys.winver, mod_name))
! except winreg.error:
try:
! key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "Software\\Python\\PythonCore\\%s\\Modules\\%s" % (sys.winver, mod_name))
! except winreg.error:
print("Could not find the existing '%s' module registered in the registry" % (mod_name,))
usage_and_die(4)
# Create the debug key.
! sub_key = winreg.CreateKey(key, "Debug")
! winreg.SetValue(sub_key, None, winreg.REG_SZ, dll_name)
print("Registered '%s' in the registry" % (dll_name,))
|