From: Renaud Barate Date: Wed, 10 Nov 2010 15:38:47 +0000 (+0000) Subject: Fixed appli initialization for codes that are not integrated in Eficas X-Git-Tag: V5_1_5~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e043799ea73d220401ff1e17bdd6599f3b395cff;p=tools%2Feficas.git Fixed appli initialization for codes that are not integrated in Eficas --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index a0f5076a..4f1b732c 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -57,12 +57,12 @@ class MyEficas( qtEficas.Appli ): @param fichier: chemin absolu du fichier eficas a ouvrir a das le lancement. optionnel """ - #bidouille pour OpenTurns dictPathCode={'ASTER':'Aster','OPENTURNS_STUDY':'Openturns_Study', 'OPENTURNS_WRAPPER':'Openturns_Wrapper','MAP':'MAP','SEP':'Sep'} - pathCode=dictPathCode[code] - sys.path[:0]=[os.path.join(eficasConfig.eficasPath,pathCode)] - + if code in dictPathCode.keys(): + pathCode=dictPathCode[code] + sys.path[:0]=[os.path.join(eficasConfig.eficasPath,pathCode)] + if Editeur.__dict__.has_key( 'session' ): from Editeur import session eficasArg = []