summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-03-02 16:25:34 +0530
committerrahulp132020-03-02 16:25:34 +0530
commit9fcc73d1b18aa763bb918a392a152688cf1fb1ea (patch)
treef3d212b17a05f7fd2eaeb58d48198eafc3e8d22e
parent656357024fc225c79b7273ed05672f2d4d797f73 (diff)
downloadeSim-9fcc73d1b18aa763bb918a392a152688cf1fb1ea.tar.gz
eSim-9fcc73d1b18aa763bb918a392a152688cf1fb1ea.tar.bz2
eSim-9fcc73d1b18aa763bb918a392a152688cf1fb1ea.zip
resolve issue with incorrect library paths
-rw-r--r--src/kicadtoNgspice/DeviceModel.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index d548f289..c4ea9a22 100644
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -86,10 +86,9 @@ class DeviceModel(QtGui.QWidget):
try:
for child in root:
- if child.tag[0] == eachline[0] \
- and child.tag[1] == eachline[1]:
- # print("DEVICE MODEL MATCHING---", child.tag[0], \
- # child.tag[1], eachline[0], eachline[1])
+ if child.tag == words[0]:
+ # print("DEVICE MODEL MATCHING---", \
+ # child.tag, words[0])
try:
if os.path.exists(child[0].text):
self.entry_var[self.count] \
@@ -150,10 +149,9 @@ class DeviceModel(QtGui.QWidget):
# global path_name
try:
for child in root:
- if child.tag[0] == eachline[0] \
- and child.tag[1] == eachline[1]:
- # print("DEVICE MODEL MATCHING---", child.tag[0], \
- # child.tag[1], eachline[0], eachline[1])
+ if child.tag == words[0]:
+ # print("DEVICE MODEL MATCHING---", \
+ # child.tag, words[0])
try:
if os.path.exists(child[0].text):
path_name = child[0].text
@@ -213,10 +211,9 @@ class DeviceModel(QtGui.QWidget):
# global path_name
try:
for child in root:
- if child.tag[0] == eachline[0] \
- and child.tag[1] == eachline[1]:
- # print("DEVICE MODEL MATCHING---", child.tag[0], \
- # child.tag[1], eachline[0], eachline[1])
+ if child.tag == words[0]:
+ # print("DEVICE MODEL MATCHING---", \
+ # child.tag, words[0])
try:
if os.path.exists(child[0].text):
self.entry_var[self.count] \
@@ -326,10 +323,9 @@ class DeviceModel(QtGui.QWidget):
# global path_name
try:
for child in root:
- if child.tag[0] == eachline[0] \
- and child.tag[1] == eachline[1]:
- # print("DEVICE MODEL MATCHING---", child.tag[0], \
- # child.tag[1], eachline[0], eachline[1])
+ if child.tag == words[0]:
+ # print("DEVICE MODEL MATCHING---", \
+ # child.tag, words[0])
while i <= end:
self.entry_var[i].setText(child[i-beg].text)
if (i - beg) == 0: