commit | 6376d3f6c0f7025fcd742bdde745306aeb7de9b5 | [log] [tgz] |
---|---|---|
author | Tim 'mithro' Ansell <me@mith.ro> | Fri Nov 20 14:37:32 2020 -0800 |
committer | Tim 'mithro' Ansell <me@mith.ro> | Fri Nov 20 14:37:32 2020 -0800 |
tree | 851452dad463cf5f4cb24aa65887b32ab07a5e97 | |
parent | eb74218a3a5c78babd5d88ea24db089b5bb09b12 [diff] |
Fixes.
diff --git a/sram_spice.py b/sram_spice.py index 0649b9e..4a310c1 100755 --- a/sram_spice.py +++ b/sram_spice.py
@@ -32,7 +32,8 @@ d = os.path.join(dst_dir, ddir, f"{dbase}.{dext}") with open(d, "w") as f: - f.write(header) + if not data.startswith(header): + f.write(header) f.write(data) print("Created", s, "from", d)