On second thought, first try for _winreg, and then winreg. Only if both

fail do we try for win32api/win32con.  If *those* both fail, then we don't
have registry access.  Phew!
This commit is contained in:
Greg Ward 2000-06-29 23:04:59 +00:00
parent cc7371c437
commit 83c3870e2b
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@ from distutils.ccompiler import \
_can_read_reg = 0
try:
import _winreg
try:
import _winreg
except ImportError:
import winreg # for pre-2000/06/29 CVS Python
_can_read_reg = 1
hkey_mod = _winreg