def get_cl_builder_distro(self): """Current assembling systems""" envFile = '/etc/calculate/assemble.env' envData = iniParser(envFile) return filter(lambda x:envData.getVar(x, 'os_assemble_root_dev'), map(lambda x:_toUNICODE(x).encode('utf-8'), envData.getAllSectionNames()))
def get_cl_builder_path(self): """Get path for image""" paths = map(lambda x:x[1],reversed(libData.cl_env_data['value'])) if self.Get('cl_action') != 'kernel': for inifile in paths: if os.access(inifile,os.R_OK): inidata = iniParser(inifile) res = inidata.getVar("assemble","cl_assemble_path", checkExistVar=True) if res and res[0]: return _toUNICODE(res[1]).encode('utf-8') return "/mnt/builder" return "/"