summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ngspiceSimulation/NgspiceWidget.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py
index 3c68148b..8c63a22a 100644
--- a/src/ngspiceSimulation/NgspiceWidget.py
+++ b/src/ngspiceSimulation/NgspiceWidget.py
@@ -39,7 +39,9 @@ class NgspiceWidget(QtWidgets.QWidget):
os.chdir(tempdir)
else: # For Linux OS
- self.command = "cd " + projPath + ";ngspice " + command
+ self.command = "cd " + projPath + \
+ ";ngspice -r " + command.replace(".cir.out", ".raw") + \
+ " " + command
# Creating argument for process
self.args = ['-hold', '-e', self.command]
self.process.start('xterm', self.args)
@@ -51,8 +53,6 @@ class NgspiceWidget(QtWidgets.QWidget):
self.process.pid())
)
self.process = QtCore.QProcess(self)
- self.command = "ngspice -b -r " + \
- command.replace(".cir.out", ".raw") + " -o " \
- + command.replace(".cir.out", ".out") + " " + command + \
- "; gaw " + command.replace(".cir.out", ".raw")
+ self.command = "gaw " + command.replace(".cir.out", ".raw")
self.process.start('sh', ['-c', self.command])
+ print(self.command)