Commit 9d71d05b authored by Greg Ward's avatar Greg Ward

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!
parent ac971ce5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment