logging
This commit is contained in:
parent
551114e9f6
commit
d32ed3107e
|
@ -17,9 +17,11 @@ class RunScriptSkill(MycroftSkill):
|
||||||
|
|
||||||
def read_scripts_dir(self):
|
def read_scripts_dir(self):
|
||||||
if self.script_dir and os.path.isdir(self.script_dir):
|
if self.script_dir and os.path.isdir(self.script_dir):
|
||||||
|
self.log.info("Reading scripts from %" % self.script_dir)
|
||||||
self.scripts = os.listdir(self.script_dir)
|
self.scripts = os.listdir(self.script_dir)
|
||||||
|
self.log.debug("Scripts: %" % ','.join(self.scripts))
|
||||||
else:
|
else:
|
||||||
self.log.critical("The script_dir directory does not exist or can't be read")
|
self.log.critical("The script_dir directory (%) does not exist or can't be read" % self.script_dir)
|
||||||
self.scripts = []
|
self.scripts = []
|
||||||
|
|
||||||
@intent_handler('RunScript.intent')
|
@intent_handler('RunScript.intent')
|
||||||
|
|
Loading…
Reference in New Issue