CFG: ignore _freeze in as_dict

This commit is contained in:
yaozhicheng 2024-11-04 14:53:49 +08:00
parent 06ad575701
commit fd468709c6
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ class CfgObject:
def as_dict(self):
data = {}
for key, value in self.__dict__.items():
if key == "_freeze":
continue
if isinstance(value, CfgObject):
data[key] = value.as_dict()
else: