def _load_main_conf(self, build_all=True): self._main = {} if os.path.exists(self.main_conf_path) == False: shutil.copy(os.path.join(constants.packagedir, 'cravat.yml'), self.main_conf_path) self._main = au.load_yml_conf(self.main_conf_path) if build_all: self._build_all()
def _load_module_conf(self, module_name, build_all=True): module_info = au.get_local_module_info(module_name) if module_info is not None: self._modules[module_name] = au.load_yml_conf( module_info.conf_path) if build_all: self._build_all()
def _load_job_conf(self, build_all=True): self._job = {} if self.job_conf_path: if os.path.exists(self.job_conf_path): self._job = au.load_yml_conf(self.job_conf_path) else: print('Job conf file', self.job_conf_path, 'does not exist.') exit() if build_all: self._build_all()
def _load_main_conf(self, build_all=True): self._main = {} if os.path.exists(self.main_conf_path) == False: shutil.copy(os.path.join(constants.packagedir, 'cravat.yml'), self.main_conf_path) self._main = au.load_yml_conf(self.main_conf_path) conf_modified = False k = 'multicore_mapper_mode' if k not in self._main: self._main[k] = constants.default_multicore_mapper_mode if build_all: self._build_all()
def _load_job_conf(self, build_all=True): self._job = {} if self.job_conf_path: self._job = au.load_yml_conf(self.job_conf_path) if build_all: self._build_all()
def _load_module_conf(self, module_name, build_all=True): conf_path = au.get_module_conf_path(module_name) if conf_path is not None: self._modules[module_name] = au.load_yml_conf(conf_path) if build_all: self._build_all()
def _load_main_conf(self, build_all=True): self._main = {} if os.path.exists(self.main_conf_path): self._main = au.load_yml_conf(self.main_conf_path) if build_all: self._build_all()