diff options
author | athulappadan | 2016-05-25 14:17:33 +0530 |
---|---|---|
committer | athulappadan | 2016-05-25 14:17:33 +0530 |
commit | bb8a6a6974d2f425d51df1a3042706011ff351ad (patch) | |
tree | 7663ebfb421c40072f24e519e0eee181a08e8487 /src/configuration/Appconfig.py | |
parent | 916c3c35b41e297e600903d54ecf1c802ac0b390 (diff) | |
download | eSim-bb8a6a6974d2f425d51df1a3042706011ff351ad.tar.gz eSim-bb8a6a6974d2f425d51df1a3042706011ff351ad.tar.bz2 eSim-bb8a6a6974d2f425d51df1a3042706011ff351ad.zip |
DockWidget added in UI for ngspice to modelica conversion
Diffstat (limited to 'src/configuration/Appconfig.py')
-rw-r--r-- | src/configuration/Appconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py index 3e4afad6..d9479137 100644 --- a/src/configuration/Appconfig.py +++ b/src/configuration/Appconfig.py @@ -20,6 +20,7 @@ from PyQt4 import QtGui import os import json +from ConfigParser import SafeConfigParser class Appconfig(QtGui.QWidget): @@ -42,6 +43,10 @@ class Appconfig(QtGui.QWidget): dock_dict={} #holds all dockwidgets dictPath = os.path.join(os.path.expanduser("~"), ".projectExplorer.txt") noteArea = {} + + parser_esim = SafeConfigParser() + parser_esim.read(os.path.join(os.path.expanduser("~"), os.path.join('.esim','config.ini'))) + modelica_map_json = parser_esim.get('eSim', 'MODELICA_MAP_JSON') try: project_explorer = json.load(open(dictPath)) except: |