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,7 +116,10 @@ class GeneralConfig:
for key in mandatory:
env = environ.get(f'FRAPPY_{key.upper()}')
if env is not None:
cfg[key] = Path(env)
if ':' in env:
cfg[key] = [Path(v) for v in env.split(':')]
else:
cfg[key] = Path(env)
missing_keys = [
key for key in mandatory
if cfg.get(key) is None and self.defaults.get(key) is None