summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/maker/Appconfig.py6
-rwxr-xr-xsrc/maker/ModelGeneration.py5
-rwxr-xr-xsrc/maker/NgVeri.py3
3 files changed, 6 insertions, 8 deletions
diff --git a/src/maker/Appconfig.py b/src/maker/Appconfig.py
index efeac75a..45d28e62 100755
--- a/src/maker/Appconfig.py
+++ b/src/maker/Appconfig.py
@@ -1,11 +1,11 @@
import os.path
-from configparser import SafeConfigParser
+from configparser import ConfigParser
class Appconfig:
home = os.path.expanduser("~")
# Reading all variables from eSim config.ini
- parser_esim = SafeConfigParser()
+ parser_esim = ConfigParser()
parser_esim.read(os.path.join(home, os.path.join('.esim', 'config.ini')))
try:
src_home = parser_esim.get('eSim', 'eSim_HOME')
@@ -16,7 +16,7 @@ class Appconfig:
esimFlag = 0
# Reading all variables from ngveri config.ini
- # parser_ngveri = SafeConfigParser()
+ # parser_ngveri = ConfigParser()
# parser_ngveri.read(os.path.join(home,
# os.path.join('.ngveri', 'config.ini')))
diff --git a/src/maker/ModelGeneration.py b/src/maker/ModelGeneration.py
index 208664f8..54b91d50 100755
--- a/src/maker/ModelGeneration.py
+++ b/src/maker/ModelGeneration.py
@@ -35,11 +35,10 @@ import shutil # noqa:F401
import subprocess # noqa:F401
from PyQt5 import QtGui, QtCore, QtWidgets # noqa:F401
from PyQt5.QtGui import * # noqa:F401 F403
-from configparser import ConfigParser # noqa:F401
+from configparser import ConfigParser
from configuration import Appconfig
from . import createkicad
import hdlparse.verilog_parser as vlog
-from configparser import SafeConfigParser # noqa:F401
# Class is used to generate the Ngspice Model
@@ -59,7 +58,7 @@ class ModelGeneration(QtWidgets.QWidget):
self.fname = self.fname.lower()
print("Verilog/SystemVerilog/TL Verilog filename is : ", self.fname)
self.home = os.path.expanduser("~")
- self.parser = SafeConfigParser()
+ self.parser = ConfigParser()
self.parser.read(os.path.join(
self.home, os.path.join('.nghdl', 'config.ini')))
self.ngspice_home = self.parser.get('NGSPICE', 'NGSPICE_HOME')
diff --git a/src/maker/NgVeri.py b/src/maker/NgVeri.py
index 5f0e1bcb..4e3e37da 100755
--- a/src/maker/NgVeri.py
+++ b/src/maker/NgVeri.py
@@ -34,7 +34,6 @@ from . import ModelGeneration
import os
import subprocess
from configuration.Appconfig import Appconfig
-from configparser import SafeConfigParser
from configparser import ConfigParser
@@ -48,7 +47,7 @@ class NgVeri(QtWidgets.QWidget):
# Maker.addverilog(self)
self.obj_Appconfig = Appconfig()
self.home = os.path.expanduser("~")
- self.parser = SafeConfigParser()
+ self.parser = ConfigParser()
self.parser.read(os.path.join(
self.home, os.path.join('.nghdl', 'config.ini')))
self.ngspice_home = self.parser.get('NGSPICE', 'NGSPICE_HOME')