def __init__(self, name, descr, hostnames, modules_system, preload_env, prefix, outputdir, resourcesdir, stagedir, partitions): self._name = name self._descr = descr self._hostnames = hostnames self._modules_system = ModulesSystem.create(modules_system) self._preload_env = preload_env self._prefix = prefix self._outputdir = outputdir self._resourcesdir = resourcesdir self._stagedir = stagedir self._partitions = partitions
def __init__(self, dict_config, sysdescr=None): self._site_config = config.SiteConfiguration(dict_config) if sysdescr is not None: sysname, _, partname = sysdescr.partition(':') try: self._system = HostSystem(self._site_config.systems[sysname], partname) except KeyError: raise UnknownSystemError('unknown system: %s' % sysdescr) from None else: self._system = HostSystem(self._autodetect_system()) self._resources = HostResources(self._system.prefix, self._system.stagedir, self._system.outputdir, self._system.perflogdir) self._modules_system = ModulesSystem.create( self._system.modules_system) self._current_run = 0