]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Mon, 8 Nov 2010 14:46:33 +0000 (14:46 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Mon, 8 Nov 2010 14:46:33 +0000 (14:46 +0000)
src/EFICASGUI/eficasSalome.py

index db184cd561f8688f0190d364f63e0ae89fbc06da..9d6d295214dc53284adbe58e69734172f937c213 100644 (file)
@@ -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' ):