From e043799ea73d220401ff1e17bdd6599f3b395cff Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Wed, 10 Nov 2010 15:38:47 +0000 Subject: [PATCH] Fixed appli initialization for codes that are not integrated in Eficas --- src/EFICASGUI/eficasSalome.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = [] -- 2.39.2