summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-12-14 20:29:55 +0530
committerrahulp132020-12-14 20:29:55 +0530
commit1e5623110a735b75e6019ce9dc956704df9ded97 (patch)
tree8d089ba3a0f12582de469d93edc9b9f817c95408
parent5e61158c70425c61fd1af76e69e2fe8b8f7e5105 (diff)
downloadnghdl-1e5623110a735b75e6019ce9dc956704df9ded97.tar.gz
nghdl-1e5623110a735b75e6019ce9dc956704df9ded97.tar.bz2
nghdl-1e5623110a735b75e6019ce9dc956704df9ded97.zip
removed 'make install' process for win os
-rwxr-xr-xsrc/ngspice_ghdl.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py
index fd17d7f..7fc8c93 100755
--- a/src/ngspice_ghdl.py
+++ b/src/ngspice_ghdl.py
@@ -271,6 +271,11 @@ 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 +306,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 +346,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/>''' +