def _get_win_folder_from_registry(csidl_name):
    import _winreg

    shell_folder_name = {
        "CSIDL_APPDATA": "AppData",
        "CSIDL_COMMON_APPDATA": "Common AppData",
        "CSIDL_LOCAL_APPDATA": "Local AppData",
    }[csidl_name]

    key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,
        r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
    dir, type = _winreg.QueryValueEx(key, shell_folder_name)
    return dir
Creates a new pad object for this database.
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/utils/appdirs.py/_get_win_folder_from_registry--crossover with--dataset/ETHPy150Open lektor/lektor/lektor/db.py/Database.new_pad