summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumanto Kar2023-09-02 20:10:55 +0530
committerGitHub2023-09-02 20:10:55 +0530
commitcb17bb463bc404a7a6685e83c51e7078f71a929c (patch)
treebc54d400d514ad33f2d3a5769bb14fb61e90929d
parent5314eedbe8f608f31d2722199d8034d398827d07 (diff)
downloadnghdl-master.tar.gz
nghdl-master.tar.bz2
nghdl-master.zip
Removed extra ')' appearing in the end of the .kicad_sym file.HEADmaster
-rw-r--r--src/createKicadLibrary.py3
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)