From c2111c337b9fc7ed300f80357995986993262763 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 5 Dec 2018 14:37:06 +0100 Subject: [PATCH] Update variables dict instead of replacing it --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4681afb..10723b5 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ variables = { if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(makepath(programfiles32,'wapt','private','variables.txt')): print('Reading local encrypted variables file') f = Fernet(open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read()) - variables = json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read())) + variables.update(json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read()))) def install(): parameters = '/S /acceptlicense /server="%s" /execmode=service /runnow' % (','.join(variables['fusinv_servers']))