]> SALOME platform Git repositories - tools/eficas.git/blobdiff - convert/Parserv5/conv.py
Salome HOME
pb de check box
[tools/eficas.git] / convert / Parserv5 / conv.py
index 4f4aba8baedb41144a4da75056b0afc8516cd6ad..435e0e03c2efbd270f52ee530a42c911cc7413a3 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
 # ======================================================================
 
 import sys,string
-import TextTools
-from tables import ERRORS
+try :
+    import TextTools
+except : 
+    ""
+try :
+    from tables import ERRORS
+except : 
+    ""
 
 #
-__version__="$Name:  $"
-__Id__="$Id: conv.py,v 1.1.1.1 2002/03/26 09:08:45 eficas Exp $"
+__version__="$Name: V7_main $"
+__Id__="$Id: conv.py,v 1.6.52.1 2013-01-24 14:25:23 pnoyret Exp $"
 #
 
 Keywords=('MAILLE_1','MAILLE_2','MAILLE_ESCL','MAILLE_FOND','MAILLE_MAIT','MAILLE_ORIG','MAILLE',
@@ -459,6 +466,8 @@ def format_errs(text,tags):
 def conver(text):
    from tables import aster_script
    import re
+   # On ajoute un '\n' en fin au cas ou il serait absent
+   text=text+'\n'
    text=string.upper(text)
    result, taglist, next = TextTools.tag(text,aster_script)
    # Pour vérifier les résultats intermédiaires décommenter la ligne suivante