summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/deviceModelLibrary/Transistor/NPN.xml2
-rw-r--r--src/deviceModelLibrary/Transistor/PNP.xml2
-rw-r--r--src/kicadtoNgspice/Analysis.py3
-rw-r--r--src/kicadtoNgspice/Convert.py6
4 files changed, 8 insertions, 5 deletions
diff --git a/src/deviceModelLibrary/Transistor/NPN.xml b/src/deviceModelLibrary/Transistor/NPN.xml
index f0679885..b2698bb1 100644
--- a/src/deviceModelLibrary/Transistor/NPN.xml
+++ b/src/deviceModelLibrary/Transistor/NPN.xml
@@ -1,6 +1,6 @@
<library>
<model_name>NPN</model_name>
-<refrence>Q2N2222</refrence>
+<ref_model>Q2N2222</ref_model>
<param>
<Is>14.34f </Is>
<Xti>3 </Xti>
diff --git a/src/deviceModelLibrary/Transistor/PNP.xml b/src/deviceModelLibrary/Transistor/PNP.xml
index a25276a9..681b3fd9 100644
--- a/src/deviceModelLibrary/Transistor/PNP.xml
+++ b/src/deviceModelLibrary/Transistor/PNP.xml
@@ -1,6 +1,6 @@
<library>
<model_name>PNP</model_name>
-<refrence>Q2N2907A</refrence>
+<ref_model>Q2N2907A</ref_model>
<param>
<Is>650.6E-18</Is>
<Xti>3 </Xti>
diff --git a/src/kicadtoNgspice/Analysis.py b/src/kicadtoNgspice/Analysis.py
index 22383c5b..7ac430c4 100644
--- a/src/kicadtoNgspice/Analysis.py
+++ b/src/kicadtoNgspice/Analysis.py
@@ -1,6 +1,5 @@
-from PyQt4 import QtGui,QtCore
-from PyQt4.Qt import QRect
+from PyQt4 import QtGui
import TrackWidget
import os
import sys
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py
index 50b2f98b..739963ba 100644
--- a/src/kicadtoNgspice/Convert.py
+++ b/src/kicadtoNgspice/Convert.py
@@ -320,7 +320,11 @@ class Convert:
deviceLine[index] = words
includeLine.append(".include "+libname)
- src = completeLibPath.split(':')[0]
+ #src = completeLibPath.split(':')[0] # <----- Not working in Windows
+
+ (src_path,src_lib) = os.path.split(completeLibPath)
+ src_lib = src_lib.split(':')[0]
+ src = os.path.join(src_path,src_lib)
dst = projpath
shutil.copy2(src, dst)
else: