fix case where confdir is a list of paths

This commit is contained in:
zolliker 2024-10-24 11:46:23 +02:00
parent 3c69dcb170
commit f382a01d86

View File

@ -116,6 +116,9 @@ class GeneralConfig:
for key in mandatory:
env = environ.get(f'FRAPPY_{key.upper()}')
if env is not None:
if ':' in env:
cfg[key] = [Path(v) for v in env.split(':')]
else:
cfg[key] = Path(env)
missing_keys = [
key for key in mandatory