From 4b4d8ebdb09ef8057608ee461b890d88a8d7e63f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 12 May 2025 18:53:04 +0200 Subject: [PATCH] Config: Add property name There's currently no way to access the root node content, add the property name for that. Signed-off-by: Jan Lindemann --- tools/python/jwutils/Config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/python/jwutils/Config.py b/tools/python/jwutils/Config.py index 6eb59ae..925cb04 100644 --- a/tools/python/jwutils/Config.py +++ b/tools/python/jwutils/Config.py @@ -145,3 +145,7 @@ class Config(): # export def dump(self, prio: int, *args, **kwargs) -> None: caller = get_caller_pos(1, kwargs) self.__conf.dump(prio, caller=caller, *args, **kwargs) + + @property + def name(self): + return self.__conf.content