def submodule_name(self): name_to_path = {name: path for name, path, url, sha in self.repo.msminfo.get_skill_data()} if self.name not in name_to_path: raise NotUploaded('The skill {} has not yet been uploaded to the skill store'.format( self.name )) return name_to_path[self.name]
def __init__(self, args): msm = MycroftSkillsManager() skill_matches = [ skill for skill in msm.list() if skill.is_local and samefile(skill.path, args.skill_folder) ] if not skill_matches: raise NotUploaded( 'Skill at folder not uploaded to store: {}'.format( args.skill_folder)) self.skill = SkillData(skill_matches[0])