still learning python stuff
This commit is contained in:
parent
e39f55b509
commit
989bce8ceb
|
@ -16,7 +16,7 @@ class RunScriptSkill(MycroftSkill):
|
|||
self.read_scripts_dir()
|
||||
|
||||
def read_scripts_dir(self):
|
||||
if os.isdir(self.script_dir):
|
||||
if os.path.isdir(self.script_dir):
|
||||
self.scripts = os.listdir(script_dir)
|
||||
else:
|
||||
self.log.critical("The script_dir directory does not exist or can't be read")
|
||||
|
|
Loading…
Reference in New Issue