From a92177904ed165d40cc702e8dbcd849979f76709 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 14 Jun 2023 17:29:26 +0200 Subject: Coil gen done --- gerbonara/cad/kicad/footprints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gerbonara/cad') diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py index 1be4d3c..a31d90f 100644 --- a/gerbonara/cad/kicad/footprints.py +++ b/gerbonara/cad/kicad/footprints.py @@ -604,7 +604,10 @@ class Footprint: def write(self, filename=None): with open(filename or self.original_filename, 'w') as f: - f.write(build_sexp(sexp(self))) + f.write(self.serialize()) + + def serialize(self): + return build_sexp(sexp(type(self), self)[0]) @classmethod def open_pretty(kls, pretty_dir, fp_name, *args, **kwargs): -- cgit