for cata in lcata:
catadir, catafile = os.path.split(cata)
name = catafile[:-11]
- if name == "GUI":
- modules_dict[name] = ' <module name="%s" gui="no" path="%s"/>' % (name, path)
- else:
- modules_dict[name] = ' <module name="%s" path="%s"/>' % (name, path)
+ modules_dict[name] = ' <module name="%s" path="%s"/>' % (name, path)
else:
- if module == "GUI":
- modules_dict[module] = ' <module name="%s" gui="no" path="%s"/>' % (module, path)
- else:
- modules_dict[module] = ' <module name="%s" path="%s"/>' % (module, path)
+ modules_dict[module] = ' <module name="%s" path="%s"/>' % (module, path)
- modules_dict["KERNEL"] = ' <module name="KERNEL" gui="no" path="%s"/>' % self.kernel
+ modules_dict["KERNEL"] = ' <module name="KERNEL" path="%s"/>' % self.kernel
#keep only the modules which names are in restrict if given
modules = []
#add the alternate modules if given
if altmodules:
for module, path in altmodules.items():
- if module == "GUI":
- modules.append(' <module name="%s" gui="no" path="%s"/>' % (module, path))
- else:
- modules.append(' <module name="%s" path="%s"/>' % (module, path))
+ modules.append(' <module name="%s" path="%s"/>' % (module, path))
#add the generated module
- if self.gui:
- modules.append(' <module name="%s" path="%s"/>' % (self.module.name, os.path.abspath(self.module.prefix)))
- else:
- modules.append(' <module name="%s" gui="no" path="%s"/>' % (self.module.name, os.path.abspath(self.module.prefix)))
+ modules.append(' <module name="%s" path="%s"/>' % (self.module.name, os.path.abspath(self.module.prefix)))
#try to find a prerequisites file