mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
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 <jan@janware.com>
This commit is contained in:
parent
976178f5bf
commit
4b4d8ebdb0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue