blob: e1303dc5df4d9afbfc15f4d3a72cf79a1579a4b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Linux compatibility shim for Python plugins that import winreg.
# These plugins already handle FileNotFoundError fallback paths when registry
# lookups are unavailable.
HKEY_LOCAL_MACHINE = object()
HKEY_CURRENT_USER = object()
def OpenKey(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
def QueryValueEx(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
|