From 486b8b944b08da847a708b31e256480ceac0e91c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 6 Mar 2016 22:50:39 +0100 Subject: [PATCH] Overwrite parts if they already exist This allows using the Boxes object multiple times with different settings --- boxes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes.py b/boxes.py index 604b6a2..a7dcceb 100755 --- a/boxes.py +++ b/boxes.py @@ -583,8 +583,8 @@ See --sy for format""") if name is None: name = part.__class__.__name__ name = name[0].lower() + name[1:] - if not hasattr(self, name): - setattr(self, name, part) + #if not hasattr(self, name): + setattr(self, name, part) if isinstance(part, Edge): self.edges[part.char] = part