Example #1
0
def load_skills_callback():
    global ws
    global skills
    skills += load_skills(ws)
    config = ConfigurationManager.get().get("skills")

    try:
        ini_third_party_skills_dir = expanduser(config.get("directory"))
    except AttributeError as e:
        logger.warning(e.message)

    for loc in THIRD_PARTY_SKILLS_DIR:
        if exists(loc):
            skills += load_skills(ws, loc)

    if ini_third_party_skills_dir and exists(ini_third_party_skills_dir):
        skills += load_skills(ws, ini_third_party_skills_dir)
Example #2
0
def load_skills_callback():
    global ws
    load_skills(ws)
    config = ConfigurationManager.get().get("skills")

    try:
        ini_third_party_skills_dir = expanduser(config.get("directory"))
    except AttributeError as e:
        logger.warning(e.message)

    for loc in THIRD_PARTY_SKILLS_DIR:
        if exists(loc):
            load_skills(client, loc)

    if ini_third_party_skills_dir and exists(ini_third_party_skills_dir):
        load_skills(ws, ini_third_party_skills_dir)
Example #3
0
def load_skills_callback():
    global client
    load_skills(client)
    config = ConfigurationManager.get()
    config_core = config.get("core")

    try:
        ini_third_party_skills_dir = expanduser(
            config_core.get("third_party_skills_dir"))
    except AttributeError as e:
        logger.warning(e.message)

    if exists(THIRD_PARTY_SKILLS_DIR):
        load_skills(client, THIRD_PARTY_SKILLS_DIR)

    if ini_third_party_skills_dir and exists(ini_third_party_skills_dir):
        load_skills(client, ini_third_party_skills_dir)
Example #4
0
def load_skills_callback():
    global client
    load_skills(client)
Example #5
0
 def load_skills(self):
     load_skills(self.emitter, self.skills_root)
     return self.emitter.emitter  # kick out the underlying emitter
Example #6
0
 def load_skills(self):
     self.skills = load_skills(self.emitter, self.skills_root)
     self.skills = [s for s in self.skills if s]
     return self.emitter.emitter  # kick out the underlying emitter