aboutsummaryrefslogtreecommitdiff
path: root/libs/winreg.py
blob: 2ecbb1ff514424fc445f32275f8e9660d84a824e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Linux compatibility shim for Python plugins that import the Windows `winreg`
# module. Callers in our plugin set expect registry access to fail and fall back
# to non-registry paths.

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")