eric6/eric6_post_install.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6951
ef3e87580dc9
child 7229
53054eb5b15a
equal deleted inserted replaced
7191:960850ec284c 7192:a22eee00b052
63 @type str 63 @type str
64 @return value of requested registry variable 64 @return value of requested registry variable
65 @rtype any 65 @rtype any
66 """ 66 """
67 try: 67 try:
68 import _winreg as winreg 68 import winreg
69 except ImportError: 69 except ImportError:
70 try: 70 return None
71 import winreg
72 except ImportError:
73 return None
74 71
75 try: 72 try:
76 registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, 73 registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0,
77 winreg.KEY_READ) 74 winreg.KEY_READ)
78 value, _ = winreg.QueryValueEx(registryKey, name) 75 value, _ = winreg.QueryValueEx(registryKey, name)

eric ide

mercurial