From 9fc2aa65d5616ab217e7f5bed249084c0e64d28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Kr=C3=BCger?= Date: Wed, 13 Nov 2024 13:49:42 +0100 Subject: [PATCH] Lib/config: Create a list of pathes only for confdir Under some condition (no general config file) it's possible that the piddir and logdir as well are lists of pathes which creates some errors during the server start This problems occurs at least in NICOS test suite where no general config file is defined. Change-Id: I94c5db927923834c1546dbc34e2490b07b0bf111 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34952 Reviewed-by: Markus Zolliker Tested-by: Jenkins Automated Tests Reviewed-by: Jens Krueger --- frappy/lib/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappy/lib/__init__.py b/frappy/lib/__init__.py index 96b9eae..93e0538 100644 --- a/frappy/lib/__init__.py +++ b/frappy/lib/__init__.py @@ -98,7 +98,10 @@ class GeneralConfig: missing_keys.append(key) else: if not isinstance(env, Path): - env = [Path(v) for v in env.split(':')] + if key == 'confdir': + env = [Path(v) for v in env.split(':')] + else: + env = Path(env) cfg[key] = env if missing_keys: if configfile: