From 378fc7dc1bbc4c8c1c84db4a049d12f3414c6584 Mon Sep 17 00:00:00 2001 From: Fahim Date: Fri, 5 Feb 2016 11:33:44 +0530 Subject: Modified Appconfig.py to separate nghdl & esim config detail --- src/Appconfig.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/Appconfig.py') diff --git a/src/Appconfig.py b/src/Appconfig.py index 2d610c1..55e6e79 100644 --- a/src/Appconfig.py +++ b/src/Appconfig.py @@ -5,13 +5,17 @@ from ConfigParser import SafeConfigParser class Appconfig: home = os.path.expanduser("~") #Reading all varibale from eSim config.ini - parser = SafeConfigParser() - parser.read(os.path.join(home, os.path.join('.esim','config.ini'))) - src_home = parser.get('eSim','eSim_HOME') - xml_loc = os.path.join(src_home,'src/modelParamXML')#"/opt/eSim/src/modelParamXML/" + parser_esim = SafeConfigParser() + parser_esim.read(os.path.join(home, os.path.join('.esim','config.ini'))) + src_home = parser_esim.get('eSim','eSim_HOME') + xml_loc = os.path.join(src_home,'src/modelParamXML') lib_loc = os.path.expanduser('~') esimFlag = 0 + #Reading all variable from nghdl config.ini + parser_nghdl = SafeConfigParser() + parser_nghdl.read(os.path.join(home,os.path.join('.nghdl','config.ini'))) + kicad_lib_template = { "start_def":"DEF comp_name U 0 40 Y Y 1 F N", "U_field":"F0 \"U\" 2850 1800 60 H V C CNN", -- cgit