forked from XS-MLVP/UnityChipForXiangShan
CFG: ignore _freeze in as_dict
This commit is contained in:
parent
06ad575701
commit
fd468709c6
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue