Salome HOME
merge Telemac
[tools/eficas.git] / Telemac / prefs_TELEMAC.py
index 622b68bbd39da6733c6bffc7765a4fea415156e7..1ae9a7e1061b8c56841d1379ab21d869b1cabf6e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-#            maConfiguration MANAGEMENT OF EDF VERSION
+#            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
 # THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
@@ -35,20 +35,8 @@ lang = 'ang'
 
 # Codage des strings qui accepte les accents (en remplacement de 'ascii')
 encoding = 'iso-8859-1'
-docPath = repIni
 
-try:
-    import TelApy
-    rep_cata = os.path.join(os.environ['HOMETEL'],
-                            'scripts',
-                            'python27',
-                            'eficas')
-except ImportError as excp:
-    print('Using eficas local catalog')
-    rep_cata = repIni
-except Exception as excep:
-    print("Missing HOMETEL in environment")
-    rep_cata = repIni
+rep_cata = repIni
 
 cata_telemac = {
       'telemac2d': os.path.join(rep_cata, 'telemac2d_cata_auto.py'),
@@ -59,8 +47,9 @@ cata_telemac = {
       'waqtel': os.path.join(rep_cata, 'waqtel_cata_auto.py'),
       'stbtel': os.path.join(rep_cata, 'stbtel_cata_auto.py'),
       'postel3d': os.path.join(rep_cata, 'postel3d_cata_auto.py'),
+      'gaia': os.path.join(rep_cata, 'gaia_cata_auto.py'),
+      'khione': os.path.join(rep_cata, 'khione_cata_auto.py'),
                }
-print(cata_telemac)
 
 translator_telemac = {\
       'telemac2d': os.path.join(rep_cata, 'telemac2d_labelCataToIhm'),
@@ -71,12 +60,11 @@ translator_telemac = {\
       'waqtel': os.path.join(rep_cata, 'waqtel_labelCataToIhm'),
       'stbtel': os.path.join(rep_cata, 'stbtel_labelCataToIhm'),
       'postel3d': os.path.join(rep_cata, 'postel3d_labelCataToIhm'),
+      'gaia': os.path.join(rep_cata, 'gaia_labelCataToIhm'),
+      'khione': os.path.join(rep_cata, 'khione_labelCataToIhm'),
                      }
 #
 catalogues = (\
-    #('TELEMAC','default',os.path.join(repIni,'Telemac_Cata_nouveau.py'),'TELEMAC','python'),
-    #('TELEMAC','cas',os.path.join(repIni,'Telemac_Cata.py'),'TELEMAC','TELEMAC'),
-    #('2D','cas',os.path.join(repIni,'Telemac2d_Cata_auto.py'),'TELEMAC','TELEMAC'),
     ('TELEMAC', 'telemac2d', cata_telemac['telemac2d'], 'TELEMAC', 'TELEMAC'),
     ('TELEMAC', 'telemac3d', cata_telemac['telemac3d'], 'TELEMAC', 'TELEMAC'),
     ('TELEMAC', 'tomawac', cata_telemac['tomawac'], 'TELEMAC', 'TELEMAC'),
@@ -85,10 +73,8 @@ catalogues = (\
     ('TELEMAC', 'waqtel', cata_telemac['waqtel'], 'TELEMAC', 'TELEMAC'),
     ('TELEMAC', 'stbtel', cata_telemac['stbtel'], 'TELEMAC', 'TELEMAC'),
     ('TELEMAC', 'postel3d', cata_telemac['postel3d'], 'TELEMAC', 'TELEMAC'),
-    #('2222D','cas',os.path.join(repIni,'telemac2d_V6_cata.py'),'TELEMAC','TELEMAC'),
-    #('TELEMAC','cas',os.path.join(repIni,'Telemac_Cata.py'),'python','TELEMAC3'),
-    #('YOANN', 'cas', os.path.join(repIni, 'Cata.py'), 'TELEMAC', 'TELEMAC'),
-    #('TELEMAC','comm',os.path.join(repIni,'Telemac_Cata.py'),'TELEMAC2','python'),
+    ('TELEMAC', 'gaia', cata_telemac['gaia'], 'TELEMAC', 'TELEMAC'),
+    ('TELEMAC', 'khione', cata_telemac['khione'], 'TELEMAC', 'TELEMAC'),
 )
 mode_nouv_commande = "figee"
 affiche = "ordre"
@@ -101,5 +87,9 @@ translatorFichier_sisyphe = translator_telemac['sisyphe']
 translatorFichier_waqtel = translator_telemac['waqtel']
 translatorFichier_stbtel = translator_telemac['stbtel']
 translatorFichier_postel3d = translator_telemac['postel3d']
+translatorFichier_gaia = translator_telemac['gaia']
+translatorFichier_khione = translator_telemac['khione']
 closeFrameRecherche = True
 differencieSiDefaut = True
+#dumpXSD=True
+#withXSD=True