From: caremoli Date: Wed, 2 Feb 2011 17:46:42 +0000 (+0000) Subject: CCAR: add gui="no" option in config_appli.xml file for KERNEL, GUI X-Git-Tag: V6_3_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0c4527d9a01486936b166c7ac750d0e808b60f1;p=tools%2Fyacsgen.git CCAR: add gui="no" option in config_appli.xml file for KERNEL, GUI and generated module if it has no gui --- diff --git a/module_generator/gener.py b/module_generator/gener.py index 6a85bd7..bb1eb00 100644 --- a/module_generator/gener.py +++ b/module_generator/gener.py @@ -886,11 +886,17 @@ echo " Qt ..................... : $qt_ok" for cata in lcata: catadir, catafile = os.path.split(cata) name = catafile[:-11] - modules_dict[name] = ' ' % (name, path) + if name == "GUI": + modules_dict[name] = ' ' % (name, path) + else: + modules_dict[name] = ' ' % (name, path) else: - modules_dict[module] = ' ' % (module, path) + if module == "GUI": + modules_dict[module] = ' ' % (module, path) + else: + modules_dict[module] = ' ' % (module, path) - modules_dict["KERNEL"] = ' ' % self.kernel + modules_dict["KERNEL"] = ' ' % self.kernel #keep only the modules which names are in restrict if given modules = [] @@ -904,10 +910,17 @@ echo " Qt ..................... : $qt_ok" #add the alternate modules if given if altmodules: for module, path in altmodules.items(): - modules.append(' ' % (module, path)) + if module == "GUI": + modules.append(' ' % (module, path)) + else: + modules.append(' ' % (module, path)) #add the generated module - modules.append(' ' % (self.module.name, os.path.abspath(self.module.prefix))) + if self.gui: + modules.append(' ' % (self.module.name, os.path.abspath(self.module.prefix))) + else: + modules.append(' ' % (self.module.name, os.path.abspath(self.module.prefix))) + #try to find a prerequisites file prerequisites = self.context.get("prerequisites")