summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorathulappadan2016-03-01 20:02:12 +0530
committerathulappadan2016-03-01 20:02:12 +0530
commit35cc8ff3d59956556bf0eecf40f58e00899d53c3 (patch)
tree2285efade33d7a46e175dc8a367052b2317440b3 /src
parent8f8e5c8e4a3608d46fd2e93f6f378c1a2aca39cf (diff)
downloadnghdl-35cc8ff3d59956556bf0eecf40f58e00899d53c3.tar.gz
nghdl-35cc8ff3d59956556bf0eecf40f58e00899d53c3.tar.bz2
nghdl-35cc8ff3d59956556bf0eecf40f58e00899d53c3.zip
Bug in nghdl standalone fixed
Diffstat (limited to 'src')
-rw-r--r--src/Appconfig.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Appconfig.py b/src/Appconfig.py
index 55e6e79..6909c53 100644
--- a/src/Appconfig.py
+++ b/src/Appconfig.py
@@ -7,9 +7,12 @@ class Appconfig:
#Reading all varibale from eSim config.ini
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('~')
+ try:
+ src_home = parser_esim.get('eSim','eSim_HOME')
+ xml_loc = os.path.join(src_home,'src/modelParamXML')
+ lib_loc = os.path.expanduser('~')
+ except:
+ pass
esimFlag = 0
#Reading all variable from nghdl config.ini