Salome HOME
Updating version, translations and version conversions
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 16 Jul 2019 12:40:26 +0000 (14:40 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 16 Jul 2019 12:40:26 +0000 (14:40 +0200)
33 files changed:
bin/module_version.py
src/daComposant/daCore/version.py
src/daEficas/CMakeLists.txt
src/daEficas/Makefile.am
src/daEficas/traduitADAOV7_4_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_4_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV7_5_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_5_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV7_5_1ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_5_1ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV7_6_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_6_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV7_7_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_7_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV7_8_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV7_8_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_1_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_1_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_2_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_2_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_3_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_3_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_4_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_4_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_5_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_5_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV8_6_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV8_6_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV9_2_0ToV9_3_0.py [deleted file]
src/daEficas/traduitADAOV9_2_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOV9_3_0ToV9_4_0.py [new file with mode: 0644]
src/daEficas/traduitADAOsansToV9_3_0.py [deleted file]
src/daEficas/traduitADAOsansToV9_4_0.py [new file with mode: 0644]

index adb2b2348a649e3b44a12b6e5772578edd828b41..b77e3749ecbe08f14abe327e9e900a6aecf6a5ee 100644 (file)
@@ -29,9 +29,9 @@ __author__ = "Jean-Philippe ARGAUD"
 __all__ = []
 
 name     = "ADAO"
-version  = "9.3.0"
+version  = "9.4.0"
 year     = "2019"
-date     = "vendredi 26 avril 2019, 12:12:12 (UTC+0100)"
+date     = "vendredi 29 novembre 2019, 12:12:12 (UTC+0100)"
 
 longname = name + ", a module for Data Assimilation and Optimization"
 cata     = "V" + version.replace(".","_")
index 553a4a7755a647d2abf2e3ddca06885e77744bb4..50ecea0fd4b9854e24f6951286dd3fecbbf45ee5 100644 (file)
@@ -27,9 +27,9 @@ __author__ = "Jean-Philippe ARGAUD"
 __all__ = []
 
 name     = "ADAO"
-version  = "9.3.0"
+version  = "9.4.0"
 year     = "2019"
-date     = "vendredi 26 avril 2019, 12:12:12 (UTC+0100)"
+date     = "vendredi 29 novembre 2019, 12:12:12 (UTC+0100)"
 
 longname = name + ", a module for Data Assimilation and Optimization"
 cata     = "V" + version.replace(".","_")
index c5cb5aa520ba2ed8b1f7036a90ab04821922878a..23d0ef7fd4ee4015d7f8ee1c882a0c1d98318a68 100644 (file)
@@ -21,7 +21,7 @@
 set(EFICAS_DIR "${EFICAS_ROOT_DIR}")
 
 SALOME_CONFIGURE_FILE(prefs_ADAO.py.in prefs_ADAO.py)
-  
+
 set(DAEFICAS_FILES
   configuration_ADAO.py
   convert_adao.py
@@ -29,20 +29,21 @@ set(DAEFICAS_FILES
   __init__.py
   ${CMAKE_CURRENT_BINARY_DIR}/prefs_ADAO.py
   prefs.py
-  traduitADAOsansToV9_3_0.py
-  traduitADAOV7_4_0ToV9_3_0.py
-  traduitADAOV7_5_0ToV9_3_0.py
-  traduitADAOV7_5_1ToV9_3_0.py
-  traduitADAOV7_6_0ToV9_3_0.py
-  traduitADAOV7_7_0ToV9_3_0.py
-  traduitADAOV7_8_0ToV9_3_0.py
-  traduitADAOV8_1_0ToV9_3_0.py
-  traduitADAOV8_2_0ToV9_3_0.py
-  traduitADAOV8_3_0ToV9_3_0.py
-  traduitADAOV8_4_0ToV9_3_0.py
-  traduitADAOV8_5_0ToV9_3_0.py
-  traduitADAOV8_6_0ToV9_3_0.py
-  traduitADAOV9_2_0ToV9_3_0.py
+  traduitADAOsansToV9_4_0.py
+  traduitADAOV7_4_0ToV9_4_0.py
+  traduitADAOV7_5_0ToV9_4_0.py
+  traduitADAOV7_5_1ToV9_4_0.py
+  traduitADAOV7_6_0ToV9_4_0.py
+  traduitADAOV7_7_0ToV9_4_0.py
+  traduitADAOV7_8_0ToV9_4_0.py
+  traduitADAOV8_1_0ToV9_4_0.py
+  traduitADAOV8_2_0ToV9_4_0.py
+  traduitADAOV8_3_0ToV9_4_0.py
+  traduitADAOV8_4_0ToV9_4_0.py
+  traduitADAOV8_5_0ToV9_4_0.py
+  traduitADAOV8_6_0ToV9_4_0.py
+  traduitADAOV9_2_0ToV9_4_0.py
+  traduitADAOV9_3_0ToV9_4_0.py
   )
 
 install(FILES ${DAEFICAS_FILES} DESTINATION "${ADAO_SCRIPT_PYTHON}/adao/daEficas")
index db957cd70bd2ca4b0c1e13b50c04460f75960f61..33ac89508d78d50850d5c37e0b5abaf7d08ae998 100644 (file)
@@ -34,19 +34,20 @@ mypkgpython_PYTHON = \
                __init__.py \
                prefs_ADAO.py \
                prefs.py \
-               traduitADAOsansToV9_3_0.py \
-               traduitADAOV7_4_0ToV9_3_0.py \
-               traduitADAOV7_5_0ToV9_3_0.py \
-               traduitADAOV7_5_1ToV9_3_0.py \
-               traduitADAOV7_6_0ToV9_3_0.py \
-               traduitADAOV7_7_0ToV9_3_0.py \
-               traduitADAOV7_8_0ToV9_3_0.py \
-               traduitADAOV8_1_0ToV9_3_0.py \
-               traduitADAOV8_2_0ToV9_3_0.py \
-               traduitADAOV8_3_0ToV9_3_0.py \
-               traduitADAOV8_4_0ToV9_3_0.py \
-               traduitADAOV8_5_0ToV9_3_0.py \
-               traduitADAOV8_6_0ToV9_3_0.py \
-               traduitADAOV9_2_0ToV9_3_0.py
+               traduitADAOsansToV9_4_0.py \
+               traduitADAOV7_4_0ToV9_4_0.py \
+               traduitADAOV7_5_0ToV9_4_0.py \
+               traduitADAOV7_5_1ToV9_4_0.py \
+               traduitADAOV7_6_0ToV9_4_0.py \
+               traduitADAOV7_7_0ToV9_4_0.py \
+               traduitADAOV7_8_0ToV9_4_0.py \
+               traduitADAOV8_1_0ToV9_4_0.py \
+               traduitADAOV8_2_0ToV9_4_0.py \
+               traduitADAOV8_3_0ToV9_4_0.py \
+               traduitADAOV8_4_0ToV9_4_0.py \
+               traduitADAOV8_5_0ToV9_4_0.py \
+               traduitADAOV8_6_0ToV9_4_0.py \
+               traduitADAOV9_2_0ToV9_4_0.py \
+               traduitADAOV9_3_0ToV9_4_0.py
 
 EXTRA_DIST = prefs_ADAO.py.in
diff --git a/src/daEficas/traduitADAOV7_4_0ToV9_3_0.py b/src/daEficas/traduitADAOV7_4_0ToV9_3_0.py
deleted file mode 100644 (file)
index 02e9b7c..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    "ASSIMILATION_STUDY",
-    "CHECKING_STUDY",
-    )
-
-dict_erreurs = {
-    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
-    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-
-    #Parse les mocles des commandes
-    parseKeywords(jdc.root)
-    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
-    # ==========================================================================
-
-    for command in atraiter:
-        # Insere le MC s'il n'existe pas
-        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
-        # Deplace le MC
-        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
-        # Renomme le MC
-        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
-        # Renomme le MC
-        renameMotCle(jdc, command, "Study_name", "StudyName")
-        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
-    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_4_0ToV9_4_0.py b/src/daEficas/traduitADAOV7_4_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..fccf9b6
--- /dev/null
@@ -0,0 +1,117 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    "ASSIMILATION_STUDY",
+    "CHECKING_STUDY",
+    )
+
+dict_erreurs = {
+    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
+    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+
+    #Parse les mocles des commandes
+    parseKeywords(jdc.root)
+    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
+    # ==========================================================================
+
+    for command in atraiter:
+        # Insere le MC s'il n'existe pas
+        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
+        # Deplace le MC
+        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
+        # Renomme le MC
+        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
+        # Renomme le MC
+        renameMotCle(jdc, command, "Study_name", "StudyName")
+        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
+    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV7_5_0ToV9_3_0.py b/src/daEficas/traduitADAOV7_5_0ToV9_3_0.py
deleted file mode 100644 (file)
index 02e9b7c..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    "ASSIMILATION_STUDY",
-    "CHECKING_STUDY",
-    )
-
-dict_erreurs = {
-    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
-    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-
-    #Parse les mocles des commandes
-    parseKeywords(jdc.root)
-    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
-    # ==========================================================================
-
-    for command in atraiter:
-        # Insere le MC s'il n'existe pas
-        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
-        # Deplace le MC
-        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
-        # Renomme le MC
-        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
-        # Renomme le MC
-        renameMotCle(jdc, command, "Study_name", "StudyName")
-        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
-    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_5_0ToV9_4_0.py b/src/daEficas/traduitADAOV7_5_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..fccf9b6
--- /dev/null
@@ -0,0 +1,117 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    "ASSIMILATION_STUDY",
+    "CHECKING_STUDY",
+    )
+
+dict_erreurs = {
+    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
+    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+
+    #Parse les mocles des commandes
+    parseKeywords(jdc.root)
+    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
+    # ==========================================================================
+
+    for command in atraiter:
+        # Insere le MC s'il n'existe pas
+        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
+        # Deplace le MC
+        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
+        # Renomme le MC
+        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
+        # Renomme le MC
+        renameMotCle(jdc, command, "Study_name", "StudyName")
+        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
+    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV7_5_1ToV9_3_0.py b/src/daEficas/traduitADAOV7_5_1ToV9_3_0.py
deleted file mode 100644 (file)
index 02e9b7c..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    "ASSIMILATION_STUDY",
-    "CHECKING_STUDY",
-    )
-
-dict_erreurs = {
-    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
-    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-
-    #Parse les mocles des commandes
-    parseKeywords(jdc.root)
-    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
-    # ==========================================================================
-
-    for command in atraiter:
-        # Insere le MC s'il n'existe pas
-        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
-        # Deplace le MC
-        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
-        # Renomme le MC
-        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
-        # Renomme le MC
-        renameMotCle(jdc, command, "Study_name", "StudyName")
-        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
-    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_5_1ToV9_4_0.py b/src/daEficas/traduitADAOV7_5_1ToV9_4_0.py
new file mode 100644 (file)
index 0000000..fccf9b6
--- /dev/null
@@ -0,0 +1,117 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    "ASSIMILATION_STUDY",
+    "CHECKING_STUDY",
+    )
+
+dict_erreurs = {
+    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
+    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+
+    #Parse les mocles des commandes
+    parseKeywords(jdc.root)
+    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
+    # ==========================================================================
+
+    for command in atraiter:
+        # Insere le MC s'il n'existe pas
+        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
+        # Deplace le MC
+        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
+        # Renomme le MC
+        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
+        # Renomme le MC
+        renameMotCle(jdc, command, "Study_name", "StudyName")
+        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
+    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV7_6_0ToV9_3_0.py b/src/daEficas/traduitADAOV7_6_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_6_0ToV9_4_0.py b/src/daEficas/traduitADAOV7_6_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV7_7_0ToV9_3_0.py b/src/daEficas/traduitADAOV7_7_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_7_0ToV9_4_0.py b/src/daEficas/traduitADAOV7_7_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV7_8_0ToV9_3_0.py b/src/daEficas/traduitADAOV7_8_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV7_8_0ToV9_4_0.py b/src/daEficas/traduitADAOV7_8_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_1_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_1_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_1_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_1_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_2_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_2_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_2_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_2_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_3_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_3_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_3_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_3_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_4_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_4_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_4_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_4_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_5_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_5_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_5_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_5_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV8_6_0ToV9_3_0.py b/src/daEficas/traduitADAOV8_6_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV8_6_0ToV9_4_0.py b/src/daEficas/traduitADAOV8_6_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV9_2_0ToV9_3_0.py b/src/daEficas/traduitADAOV9_2_0ToV9_3_0.py
deleted file mode 100644 (file)
index 5837c30..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    )
-
-dict_erreurs = {
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-    # ==========================================================================
-
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOV9_2_0ToV9_4_0.py b/src/daEficas/traduitADAOV9_2_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOV9_3_0ToV9_4_0.py b/src/daEficas/traduitADAOV9_3_0ToV9_4_0.py
new file mode 100644 (file)
index 0000000..00509c1
--- /dev/null
@@ -0,0 +1,97 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    )
+
+dict_erreurs = {
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+    # ==========================================================================
+
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()
diff --git a/src/daEficas/traduitADAOsansToV9_3_0.py b/src/daEficas/traduitADAOsansToV9_3_0.py
deleted file mode 100644 (file)
index a5a629e..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#-*- coding: utf-8 -*-
-#
-# Copyright (C) 2008-2018 EDF R&D
-#
-# This file is part of SALOME ADAO module
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-
-import argparse
-import sys
-import re
-
-import Traducteur.log as log
-from Traducteur.load         import getJDC, getJDCFromTexte
-from Traducteur.mocles       import parseKeywords
-from Traducteur.dictErreurs  import GenereErreurPourCommande
-from Traducteur.inseremocle  import *
-from Traducteur.movemocle    import *
-from Traducteur.renamemocle  import *
-
-version_out = "V9_3_0"
-
-usage="""Usage: python %(prog)s [args]
-
-Typical use is:
-  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
-
-atraiter = (
-    "ASSIMILATION_STUDY",
-    "CHECKING_STUDY",
-    )
-
-dict_erreurs = {
-    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
-    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
-    }
-
-sys.dict_erreurs=dict_erreurs
-
-def traduc(infile=None,outfile=None,texte=None,flog=None):
-    hdlr = log.initialise(flog)
-    if infile is not None:
-        jdc  = getJDC(infile,atraiter)
-    elif texte is not None:
-        jdc  = getJDCFromTexte(texte,atraiter)
-    else:
-        raise ValueError("Traduction du JDC impossible")
-
-    #Parse les mocles des commandes
-    parseKeywords(jdc.root)
-    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
-    # ==========================================================================
-
-    for command in atraiter:
-        # Insere le MC s'il n'existe pas
-        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
-        # Deplace le MC
-        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
-        # Renomme le MC
-        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
-        # Renomme le MC
-        renameMotCle(jdc, command, "Study_name", "StudyName")
-        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
-
-    # ==========================================================================
-    fsrc = jdc.getSource()
-    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
-    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
-    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
-    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
-    #
-    log.ferme(hdlr)
-    if outfile is not None:
-        with open(outfile,'w') as f:
-            f.write( fsrc )
-    else:
-        return fsrc
-
-class MonTraducteur:
-    def __init__(self,texte):
-        self.__texte = str(texte)
-    def traduit(self):
-        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
-
-def main():
-    parser = argparse.ArgumentParser(usage=usage)
-
-    parser.add_argument('-i','--infile', dest="infile",
-        help="Le fichier COMM en entree, a traduire")
-    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
-        help="Le fichier COMM en sortie, traduit")
-
-    args = parser.parse_args()
-    if len(args.infile) == 0:
-        print("")
-        parser.print_help()
-        print("")
-        sys.exit(1)
-
-    traduc(args.infile,args.outfile)
-
-if __name__ == '__main__':
-    main()
diff --git a/src/daEficas/traduitADAOsansToV9_4_0.py b/src/daEficas/traduitADAOsansToV9_4_0.py
new file mode 100644 (file)
index 0000000..6b6f618
--- /dev/null
@@ -0,0 +1,117 @@
+#-*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2018 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+import argparse
+import sys
+import re
+
+import Traducteur.log as log
+from Traducteur.load         import getJDC, getJDCFromTexte
+from Traducteur.mocles       import parseKeywords
+from Traducteur.dictErreurs  import GenereErreurPourCommande
+from Traducteur.inseremocle  import *
+from Traducteur.movemocle    import *
+from Traducteur.renamemocle  import *
+
+version_out = "V9_4_0"
+
+usage="""Usage: python %(prog)s [args]
+
+Typical use is:
+  python %(prog)s --infile=xxxx.comm --outfile=yyyy.comm"""
+
+atraiter = (
+    "ASSIMILATION_STUDY",
+    "CHECKING_STUDY",
+    )
+
+dict_erreurs = {
+    "ASSIMILATION_STUDY":"Changements dans l'arbre et dans les noms",
+    "CHECKING_STUDY":"Changements dans l'arbre et dans les noms",
+    }
+
+sys.dict_erreurs=dict_erreurs
+
+def traduc(infile=None,outfile=None,texte=None,flog=None):
+    hdlr = log.initialise(flog)
+    if infile is not None:
+        jdc  = getJDC(infile,atraiter)
+    elif texte is not None:
+        jdc  = getJDCFromTexte(texte,atraiter)
+    else:
+        raise ValueError("Traduction du JDC impossible")
+
+    #Parse les mocles des commandes
+    parseKeywords(jdc.root)
+    GenereErreurPourCommande(jdc,('Algorithm','AlgorithmParameters','FunctionDict'))
+    # ==========================================================================
+
+    for command in atraiter:
+        # Insere le MC s'il n'existe pas
+        chercheOperInsereFacteurSiRegle(jdc, command, "AlgorithmParameters",((("AlgorithmParameters",),"nexistepasMCFParmi"),))
+        # Deplace le MC
+        moveMotClefInOperToFact(jdc, command, "Algorithm", "AlgorithmParameters", plusieursFois=False)
+        # Renomme le MC
+        renameMotCleInFact(jdc, command, "AlgorithmParameters", "INPUT_TYPE", "Parameters")
+        # Renomme le MC
+        renameMotCle(jdc, command, "Study_name", "StudyName")
+        renameMotCle(jdc, command, "Study_repertory", "StudyRepertory")
+
+    # ==========================================================================
+    fsrc = jdc.getSource()
+    fsrc = re.sub( "FunctionDict", "ScriptWithSwitch", fsrc )
+    fsrc = re.sub( "FUNCTIONDICT_FILE", "SCRIPTWITHSWITCH_FILE", fsrc )
+    fsrc = re.sub( "#VERSION_CATALOGUE:.*:FIN VERSION_CATALOGUE", "#VERSION_CATALOGUE:%s:FIN VERSION_CATALOGUE"%version_out, fsrc)
+    fsrc = re.sub( "#CHECKSUM.*FIN CHECKSUM", "", fsrc )
+    #
+    log.ferme(hdlr)
+    if outfile is not None:
+        with open(outfile,'w') as f:
+            f.write( fsrc )
+    else:
+        return fsrc
+
+class MonTraducteur:
+    def __init__(self,texte):
+        self.__texte = str(texte)
+    def traduit(self):
+        return traduc(infile=None,outfile=None,texte=self.__texte,flog=None)
+
+def main():
+    parser = argparse.ArgumentParser(usage=usage)
+
+    parser.add_argument('-i','--infile', dest="infile",
+        help="Le fichier COMM en entree, a traduire")
+    parser.add_argument('-o','--outfile', dest="outfile", default='out.comm',
+        help="Le fichier COMM en sortie, traduit")
+
+    args = parser.parse_args()
+    if len(args.infile) == 0:
+        print("")
+        parser.print_help()
+        print("")
+        sys.exit(1)
+
+    traduc(args.infile,args.outfile)
+
+if __name__ == '__main__':
+    main()