diff options
author | Rahul Paknikar | 2021-01-08 12:21:12 +0530 |
---|---|---|
committer | GitHub | 2021-01-08 12:21:12 +0530 |
commit | 8a22d142acda58c077ec38b8155c9c1fb56a9182 (patch) | |
tree | a6f0555a090358ec2619f1ed48995ebdfaf682db /src/ngspice_ghdl.py | |
parent | 5e61158c70425c61fd1af76e69e2fe8b8f7e5105 (diff) | |
parent | 6536595225331febcb60422a8b8d2dde1520c982 (diff) | |
download | nghdl-2.1.tar.gz nghdl-2.1.tar.bz2 nghdl-2.1.zip |
Merge pull request #61 from rahulp13/masterv2.1
updated simulator's working for windows os
Diffstat (limited to 'src/ngspice_ghdl.py')
-rwxr-xr-x | src/ngspice_ghdl.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index fd17d7f..4db8062 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -271,6 +271,12 @@ class Mainwindow(QtWidgets.QWidget): self.process = QtCore.QProcess(self) self.process.start(cmd) print("make command process pid ---------- >", self.process.pid()) + + if os.name == "nt": + self.process.finished.connect(self.createSchematicLib) + self.process \ + .readyReadStandardOutput.connect(self.readAllStandard) + except BaseException: print("There is error in 'make' ") sys.exit() @@ -301,6 +307,10 @@ class Mainwindow(QtWidgets.QWidget): sys.exit() def createSchematicLib(self): + if os.name == "nt": + shutil.copy("ghdl/ghdl.cm", "../../../../lib/ngspice/") + + os.chdir(self.cur_dir) if Appconfig.esimFlag == 1: if not self.errorFlag: print('Creating library files................................') @@ -337,7 +347,8 @@ class Mainwindow(QtWidgets.QWidget): self.addingModelInModpath() self.createModelFiles() self.runMake() - self.runMakeInstall() + if os.name != 'nt': + self.runMakeInstall() else: QtWidgets.QMessageBox.information( self, 'Message', '''<b>Important Message.</b><br/>''' + |