Events, CurrentScan, pluginsState, APPRISE work

This commit is contained in:
Jokob-sk
2023-08-13 09:26:30 +10:00
parent 2414498846
commit 11f341366b
6 changed files with 68 additions and 24 deletions

View File

@@ -14,7 +14,9 @@ def read_config_file():
print('[plugin_helper] reading config file')
# load the variables from pialert.conf
code = compile(filename.read_text(), filename.name, "exec")
with open(filename, "r") as file:
code = compile(file.read(), filename, "exec")
confDict = {} # config dictionary
exec(code, {"__builtins__": {}}, confDict)
return confDict