]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
manage api change in yacsgen 5.0.0b4
authorcrouzet <nicolas.crouzet@cea.fr>
Wed, 20 Dec 2017 08:00:47 +0000 (09:00 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Wed, 20 Dec 2017 08:00:47 +0000 (09:00 +0100)
commands/generate.py

index 0fd1bf96468f09f2f00320dbe7cb0ba709053626..c1c66c756fe9b1c42c550726fdb1ea151ac9d2cd 100644 (file)
@@ -142,7 +142,10 @@ def generate_component(config, compo, product_info, context, header, logger):
 
         if src.product.product_has_salome_gui(product_info):
             # get files to build a template GUI
-            gui_files = salome_compo.getGUIfilesTemplate(compo)
+            try: # try new yacsgen api
+                gui_files = salome_compo.getGUIfilesTemplate(compo)
+            except:  # use old yacsgen api
+                gui_files = salome_compo.getGUIfilesTemplate()
         else:
             gui_files = None