summaryrefslogtreecommitdiff
path: root/src/ngspiceSimulation
diff options
context:
space:
mode:
authorfahim2015-06-02 14:55:09 +0530
committerfahim2015-06-02 14:55:09 +0530
commitcc2082a63d52bf7181902cfab70a5ff84560aa9b (patch)
tree078d9d4e833697cdf735128ee7e29d28b5e8f096 /src/ngspiceSimulation
parent622f2dee480c1e352b0c2821c63fe443d8419ab8 (diff)
downloadeSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.tar.gz
eSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.tar.bz2
eSim-cc2082a63d52bf7181902cfab70a5ff84560aa9b.zip
Subject: Added cd to project directory in xterm.
Description: This is done in order to avoid copying plot data file to project And also to make sure ngspice project get access its library used in netlist
Diffstat (limited to 'src/ngspiceSimulation')
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index de56359d..21b5164d 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -5,11 +5,10 @@ class NgspiceWidget(QtGui.QWidget):
"""
This Class creates NgSpice Window
"""
- def __init__(self,command):
+ def __init__(self,command,projPath):
QtGui.QWidget.__init__(self)
self.obj_appconfig = Appconfig()
- self.command = "ngspice "+command
-
+ self.command = "cd "+projPath+";ngspice "+command
self.process = QtCore.QProcess(self)
self.terminal = QtGui.QWidget(self)
self.layout = QtGui.QVBoxLayout(self)