summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132022-02-20 22:40:34 +0530
committerrahulp132022-02-20 23:26:18 +0530
commit0bff42171c4f77c199309906300efe99c67101c4 (patch)
tree327ee35ce1cb605cba98fb2ff84a8d588833a766
parentc90a4ad5a0ceb86fa2f5c1be70e4e8ea0eb632fb (diff)
downloadnghdl-0bff42171c4f77c199309906300efe99c67101c4.tar.gz
nghdl-0bff42171c4f77c199309906300efe99c67101c4.tar.bz2
nghdl-0bff42171c4f77c199309906300efe99c67101c4.zip
Replaced SafeConfigParser alias with ConfigParser
-rwxr-xr-xsrc/Appconfig.py6
-rwxr-xr-xsrc/model_generation.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Appconfig.py b/src/Appconfig.py
index 8cf63a2..9789d2c 100755
--- a/src/Appconfig.py
+++ b/src/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 nghdl config.ini
- parser_nghdl = SafeConfigParser()
+ parser_nghdl = ConfigParser()
parser_nghdl.read(os.path.join(home, os.path.join('.nghdl', 'config.ini')))
kicad_lib_template = {
diff --git a/src/model_generation.py b/src/model_generation.py
index ce05a7c..5e8684e 100755
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -1,6 +1,6 @@
import re
import os
-from configparser import SafeConfigParser
+from configparser import ConfigParser
class ModelGeneration:
@@ -12,7 +12,7 @@ class ModelGeneration:
self.fname = os.path.basename(file)
print("VHDL 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')