def _get_config_path_registry_entry(default_config_path):
    try:
        registry_key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, _REG_PATH, 0, _winreg.KEY_READ)
        value, regtype = _winreg.QueryValueEx(registry_key, _CONFIG_KEY)
        _winreg.CloseKey(registry_key)
        return value
    except EnvironmentError:
        return default_config_path


# noinspection PyPep8Naming
Returns the current value for the configuration file path from the Windows registry.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_windows.py/_get_config_path_registry_entry