]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
pour pb de P1 = 8 dans defi list V7_3_0 V7_3_0rc5
authorPascale Noyret <pascale.noyret@edf.fr>
Thu, 9 Jan 2014 09:08:10 +0000 (09:08 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Thu, 9 Jan 2014 09:08:10 +0000 (09:08 +0000)
generator/generator_python.py

index d9178d585829b44d9e683984f7d8e4f27c7abdbd..ddae4a4d32dee797d19c3a7fb4a2e1a931a7b4c3 100644 (file)
@@ -554,12 +554,16 @@ class PythonGenerator:
           try :
             k=liste[indice+nbrColonnes]
             for l in range(nbrColonnes) :
-                textformat=textformat+liste[indice]+","
+                texteVariable=liste[indice].split("=")[0]
+                if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')'
+                textformat=textformat+texteVariable+","
                 indice=indice+1
             textformat=textformat+"\n"
           except :
             while ( indice < len(liste) ) :
-                textformat=textformat+liste[indice]+","
+                texteVariable=liste[indice].split("=")[0]
+                if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')'
+                textformat=textformat+texteVariable+","
                 indice=indice+1
             textformat=textformat+"\n"
       except :