diff options
author | fahim | 2015-06-10 15:22:47 +0530 |
---|---|---|
committer | fahim | 2015-06-10 15:22:47 +0530 |
commit | 0e3b9d36db73b525ece44933b88e49731e6f2ff1 (patch) | |
tree | 19c09ef70df543da18a85d91fa21a676cb5666f6 /src/kicadtoNgspice | |
parent | fa480619f5a5d3035a922607f293d1daa5a01dc8 (diff) | |
download | eSim-0e3b9d36db73b525ece44933b88e49731e6f2ff1.tar.gz eSim-0e3b9d36db73b525ece44933b88e49731e6f2ff1.tar.bz2 eSim-0e3b9d36db73b525ece44933b88e49731e6f2ff1.zip |
Subject: Bug fixing for adding device model library for windows
Description: Bug fixing for adding device model library for windows
Diffstat (limited to 'src/kicadtoNgspice')
-rw-r--r-- | src/kicadtoNgspice/Analysis.py | 3 | ||||
-rw-r--r-- | src/kicadtoNgspice/Convert.py | 6 |
2 files changed, 6 insertions, 3 deletions
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: |