]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
Fixed appli initialization for codes that are not integrated in Eficas
authorRenaud Barate <renaud.barate@edf.fr>
Wed, 10 Nov 2010 15:38:47 +0000 (15:38 +0000)
committerRenaud Barate <renaud.barate@edf.fr>
Wed, 10 Nov 2010 15:38:47 +0000 (15:38 +0000)
src/EFICASGUI/eficasSalome.py

index a0f5076ac87952e6f76834d489420f539c455fef..4f1b732c64bfc9ee501f48a36249baf7e57cfd85 100644 (file)
@@ -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 = []