diff options
author | Sumanto Kar | 2022-05-02 19:20:04 +0530 |
---|---|---|
committer | GitHub | 2022-05-02 19:20:04 +0530 |
commit | a5dcf62a6bb64799fba2ad53cab58797f0562a19 (patch) | |
tree | 394957aea982e564c6bdf337dc6f3011ff04a91e | |
parent | b2c5afc0a22390f221083af05c1ce2703907df25 (diff) | |
download | eSim-a5dcf62a6bb64799fba2ad53cab58797f0562a19.tar.gz eSim-a5dcf62a6bb64799fba2ad53cab58797f0562a19.tar.bz2 eSim-a5dcf62a6bb64799fba2ad53cab58797f0562a19.zip |
Update NgspiceWidget.py
-rw-r--r-- | src/ngspiceSimulation/NgspiceWidget.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index c068d0de..6e9d4fe1 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -40,7 +40,8 @@ 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) @@ -50,10 +51,8 @@ class NgspiceWidget(QtWidgets.QWidget): self.obj_appconfig.proc_dict [self.obj_appconfig.current_project['ProjectName']].append( 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) |