Get boolean value from config

main
Bob Mottram 2020-10-13 21:33:23 +01:00
parent 5631e9a050
commit 1bd0a70218
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def getConfigParam(baseDir: str, variableName: str):
configFilename = baseDir + '/config.json'
configJson = loadJson(configFilename)
if configJson:
if configJson.get(variableName):
if variableName in configJson:
return configJson[variableName]
return None