summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/DeviceModel.py
diff options
context:
space:
mode:
authorxoher2015-07-28 02:36:59 +0530
committerxoher2015-07-28 02:36:59 +0530
commit034bc2734d017f3bdc94a309102b3141cb623ce9 (patch)
tree8d0143881ede180b69775bcfb19f095b2875a9b0 /src/kicadtoNgspice/DeviceModel.py
parent6d0631e034026b958437456ae461f21ba8429813 (diff)
downloadeSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.gz
eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.tar.bz2
eSim-034bc2734d017f3bdc94a309102b3141cb623ce9.zip
Kicad to NgSpice conversion opens in dock area
Diffstat (limited to 'src/kicadtoNgspice/DeviceModel.py')
-rw-r--r--src/kicadtoNgspice/DeviceModel.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/DeviceModel.py b/src/kicadtoNgspice/DeviceModel.py
index 7dc740d2..ee8b7d25 100644
--- a/src/kicadtoNgspice/DeviceModel.py
+++ b/src/kicadtoNgspice/DeviceModel.py
@@ -12,9 +12,11 @@ class DeviceModel(QtGui.QWidget):
It dynamically creates the widget for device like diode,mosfet,transistor and jfet.
"""
- def __init__(self,schematicInfo):
+ def __init__(self,schematicInfo,clarg1):
- kicadFile = sys.argv[1]
+
+ self.clarg1=clarg1
+ kicadFile = self.clarg1
(projpath,filename)=os.path.split(kicadFile)
project_name=os.path.basename(projpath)
print "PROJECT NAME---------",project_name