Merge pull request #857 from JarbasAI/patch-16

Read Blacklisted skills from config
pull/875/head
Åke 2017-06-30 22:08:01 +02:00 committed by GitHub
commit 97af70bb86
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,9 @@
// Directory to look for user skills
"directory": "~/.mycroft/skills",
// TODO: Old unused kludge, remove from code
"stop_threshold": 2.0
"stop_threshold": 2.0,
// blacklisted skills to not load
"blacklisted_skills": ["skill-media", "send_sms"]
},
// Address of the REMOTE server

View File

@ -36,7 +36,9 @@ from mycroft.util.log import getLogger
from mycroft.skills.settings import SkillSettings
__author__ = 'seanfitz'
BLACKLISTED_SKILLS = ["send_sms", "media"]
skills_config = ConfigurationManager.instance().get("skills")
BLACKLISTED_SKILLS = skills_config.get("blacklisted_skills", [])
SKILLS_DIR = "/opt/mycroft/skills"
MainModule = '__init__'