From cb17bb463bc404a7a6685e83c51e7078f71a929c Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Sat, 2 Sep 2023 20:10:55 +0530 Subject: Removed extra ')' appearing in the end of the .kicad_sym file. --- src/createKicadLibrary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py index 7bbb8c5..1831e6c 100644 --- a/src/createKicadLibrary.py +++ b/src/createKicadLibrary.py @@ -129,6 +129,7 @@ class AutoSchematic(QtWidgets.QWidget): print("Changing directory to ", self.lib_loc) sym_file = open(self.kicad_nghdl_sym) lines = sym_file.readlines() + lines = lines[0:-2] sym_file.close() output = [] @@ -160,7 +161,7 @@ class AutoSchematic(QtWidgets.QWidget): # Removing ")" from "eSim_Nghdl.kicad_sym" file = open(self.kicad_nghdl_sym, "r") content_file = file.read() - new_content_file = content_file[:-1] + new_content_file = content_file[:-2] file.close() file = open(self.kicad_nghdl_sym, "w") file.write(new_content_file) -- cgit