This repository was archived by the owner on Sep 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ lang = "en-us"
4
4
location = " Lawrence, Kansas"
5
5
time.format = " %A, %B %d, %Y at %H:%M"
6
6
stop_threshold = 2 # in seconds
7
+ third_party_skills_dir = " ~/.mycroft/third_party_skills"
7
8
8
9
[messagebus_service]
9
10
host = " "
Original file line number Diff line number Diff line change 37
37
PRIMARY_SKILLS = ['intent' , 'wake' ]
38
38
BLACKLISTED_SKILLS = ["send_sms" ]
39
39
SKILLS_BASEDIR = dirname (__file__ )
40
+ THIRD_PARTY_SKILLS_DIR = "/opt/mycroft/third_party"
40
41
41
42
MainModule = '__init__'
42
43
Original file line number Diff line number Diff line change 17
17
18
18
19
19
import json
20
+ from os .path import join , expanduser , exists
20
21
22
+ from mycroft .configuration import ConfigurationManager
21
23
from mycroft .messagebus .client .ws import WebsocketClient
22
- from mycroft .skills .core import load_skills
24
+ from mycroft .skills .core import load_skills , THIRD_PARTY_SKILLS_DIR
23
25
from mycroft .util .log import getLogger
24
26
logger = getLogger ("Skills" )
25
27
31
33
def load_skills_callback ():
32
34
global client
33
35
load_skills (client )
36
+ config = ConfigurationManager .get ()
37
+ config_core = config .get ("core" )
38
+
39
+ try :
40
+ ini_third_party_skills_dir = expanduser (
41
+ config_core .get ("third_party_skills_dir" ))
42
+ except AttributeError as e :
43
+ logger .warning (e .message )
44
+
45
+ if exists (THIRD_PARTY_SKILLS_DIR ):
46
+ load_skills (client , THIRD_PARTY_SKILLS_DIR )
47
+
48
+ if ini_third_party_skills_dir and exists (ini_third_party_skills_dir ):
49
+ load_skills (client , ini_third_party_skills_dir )
34
50
35
51
36
52
def connect ():
You can’t perform that action at this time.
0 commit comments