From: crouzet Date: Wed, 20 Dec 2017 08:00:47 +0000 (+0100) Subject: manage api change in yacsgen X-Git-Tag: 5.0.0b4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f905247a006e5a0f9a6096d56b53bca90dcbf1b8;p=tools%2Fsat.git manage api change in yacsgen --- diff --git a/commands/generate.py b/commands/generate.py index 0fd1bf9..c1c66c7 100644 --- a/commands/generate.py +++ b/commands/generate.py @@ -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