|
|
|
@ -1,7 +1,5 @@ |
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
from setuphelpers import * |
|
|
|
|
import json |
|
|
|
|
from cryptography.fernet import Fernet |
|
|
|
|
|
|
|
|
|
uninstallkey = [] |
|
|
|
|
variables = { |
|
|
|
@ -11,8 +9,10 @@ variables = { |
|
|
|
|
# Read local variables file if available |
|
|
|
|
if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(makepath(programfiles32,'wapt','private','variables.txt')): |
|
|
|
|
print('Reading local encrypted variables file') |
|
|
|
|
from cryptography.fernet import Fernet |
|
|
|
|
import yaml |
|
|
|
|
f = Fernet(open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read()) |
|
|
|
|
variables.update(json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read()))) |
|
|
|
|
variables.update(yaml.safe_load(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read()))) |
|
|
|
|
|
|
|
|
|
props = { |
|
|
|
|
'RMTCMD':0, |
|
|
|
|