From 76bebde7a597a407ef68f994c21f6fd40e5bbca3 Mon Sep 17 00:00:00 2001 From: dev7355608 Date: Sat, 23 Sep 2017 00:13:15 +0200 Subject: [PATCH] Fix key in .reg files --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index bb11316..7c3d261 100644 --- a/app.py +++ b/app.py @@ -150,7 +150,7 @@ def extract(data, *keys, default=None): with open(os.path.join(application_path, 'restore_gamma_range.reg'), mode='w') as f: f.write('Windows Registry Editor Version 5.00\n\n') - f.write('[{}]\n'.format(icm)) + f.write('[HKEY_LOCAL_MACHINE\{}]\n'.format(icm)) f.write('"GdiIcmGammaRange"=') if gamma_range is None: @@ -161,7 +161,7 @@ def extract(data, *keys, default=None): with open(os.path.join(application_path, 'set_max_gamma_range.reg'), mode='w') as f: f.write('Windows Registry Editor Version 5.00\n\n') - f.write('[{}]\n'.format(icm)) + f.write('[HKEY_LOCAL_MACHINE\{}]\n'.format(icm)) f.write('"GdiIcmGammaRange"=dword:{:08x}'.format(256)) print('Gamma range is currently limited. To fix that, please\n'