return a dict representation of the config
(self)
| 53 | return "".join(parts) |
| 54 | |
| 55 | def to_dict(self): |
| 56 | """ return a dict representation of the config """ |
| 57 | return { k: v.to_dict() if isinstance(v, CfgNode) else v for k, v in self.__dict__.items() } |
| 58 | |
| 59 | def merge_from_dict(self, d): |
| 60 | self.__dict__.update(d) |