still learning python stuff

This commit is contained in:
Rudis Muiznieks 2022-02-08 14:58:00 -06:00
parent e39f55b509
commit 989bce8ceb
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 1 deletions

View File

@ -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")