diff options
Diffstat (limited to 'src/configuration')
-rw-r--r-- | src/configuration/Appconfig.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py index 40bb8ef6..8c34abb8 100644 --- a/src/configuration/Appconfig.py +++ b/src/configuration/Appconfig.py @@ -54,8 +54,13 @@ class Appconfig(QtGui.QWidget): os.path.join( '.esim', 'config.ini'))) - # Need to comment below line to execute on Windows 10 - # modelica_map_json = parser_esim.get('eSim', 'MODELICA_MAP_JSON') + + # Try catch added, since eSim cannot be accessed under parser for Win10 + try: + modelica_map_json = parser_esim.get('eSim', 'MODELICA_MAP_JSON') + except: + print("Cannot access eSim in parser") + try: project_explorer = json.load(open(dictPath)) except BaseException: |