From 51e8f80df36b57f8602581f5e56f2bd3f920a002 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Mon, 8 Nov 2010 14:46:33 +0000 Subject: [PATCH] *** empty log message *** --- src/EFICASGUI/eficasSalome.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index db184cd5..9d6d2952 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -58,10 +58,9 @@ class MyEficas( qtEficas.Appli ): """ #bidouille pour OpenTurns - if code.find('_') > 0 : - pathCode="Openturns_"+code[10]+code[11:].lower() - else: - pathCode=code[0]+code[1:].lower() + dictPathCode={'ASTER':'Aster','OPENTURNS_STUDY':'Openturns_Study', + 'OPENTURNS_WRAPPER':'Openturns_Wrapper','MAP':'MAP'} + pathCode=dictPathCode[code] sys.path[:0]=[os.path.join(eficasConfig.eficasPath,pathCode)] if Editeur.__dict__.has_key( 'session' ): -- 2.39.2