From cc2082a63d52bf7181902cfab70a5ff84560aa9b Mon Sep 17 00:00:00 2001 From: fahim Date: Tue, 2 Jun 2015 14:55:09 +0530 Subject: 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 --- src/ngspiceSimulation/NgspiceWidget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ngspiceSimulation') 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) -- cgit