1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 07:56:12 +00:00

BugFix: Python3

This commit is contained in:
Andre Zoledziowski 2018-04-16 17:01:28 +02:00
parent 771fcf4601
commit 57ab45f471

View File

@ -26,7 +26,7 @@ def parseenvironmentvariables(prependingpath):
namematch = re.match(r"^KCCONF_([A-Z]+)_([A-Z0-9_]+)$", name)
if namematch != None:
filename = namematch.group(1).lower() + ".cfg"
if not configs.has_key(prependingpath + filename):
if prependingpath + filename not in configs:
configs[prependingpath + filename] = dict()
confkey = namematch.group(2).lower()
configs[prependingpath + filename][confkey] = value