diff options
author | Fahim | 2016-02-04 22:10:39 +0530 |
---|---|---|
committer | Fahim | 2016-02-04 22:10:39 +0530 |
commit | 50b33879a606e28d85e5f7df12194ee4820e87b9 (patch) | |
tree | 7a8208e542642eaef0a1278d80b38411475adfd6 /src/Appconfig.py | |
parent | 53e1c1467890592441c1612c9c6b3592e019fb97 (diff) | |
download | nghdl-50b33879a606e28d85e5f7df12194ee4820e87b9.tar.gz nghdl-50b33879a606e28d85e5f7df12194ee4820e87b9.tar.bz2 nghdl-50b33879a606e28d85e5f7df12194ee4820e87b9.zip |
Modified Appconfig.py,model_generation.py and createKicadLibrary.py to accomodate changes for new installation script.
Diffstat (limited to 'src/Appconfig.py')
-rw-r--r-- | src/Appconfig.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Appconfig.py b/src/Appconfig.py index f35d290..2d610c1 100644 --- a/src/Appconfig.py +++ b/src/Appconfig.py @@ -1,8 +1,14 @@ import os.path +from ConfigParser import SafeConfigParser -class Appconfig: - xml_loc = "/opt/eSim/src/modelParamXML/" +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/" lib_loc = os.path.expanduser('~') esimFlag = 0 |