diff options
author | Sumanto Kar | 2023-09-02 20:10:55 +0530 |
---|---|---|
committer | GitHub | 2023-09-02 20:10:55 +0530 |
commit | cb17bb463bc404a7a6685e83c51e7078f71a929c (patch) | |
tree | bc54d400d514ad33f2d3a5769bb14fb61e90929d | |
parent | 5314eedbe8f608f31d2722199d8034d398827d07 (diff) | |
download | nghdl-cb17bb463bc404a7a6685e83c51e7078f71a929c.tar.gz nghdl-cb17bb463bc404a7a6685e83c51e7078f71a929c.tar.bz2 nghdl-cb17bb463bc404a7a6685e83c51e7078f71a929c.zip |
-rw-r--r-- | src/createKicadLibrary.py | 3 |
1 files changed, 2 insertions, 1 deletions
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)
|