From ddb9d5b0a28341dddd6724039137ac1f3bb2e5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Sun, 14 Jul 2019 08:11:12 +0200 Subject: [PATCH] Hack: Fix readthedocs build The Mycroft API documentation were blank due to the import of the yaml module for some reason. This moves the import into the method where it's used --- mycroft/skills/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mycroft/skills/settings.py b/mycroft/skills/settings.py index 1e1c1bfce1..ee1c7bc777 100644 --- a/mycroft/skills/settings.py +++ b/mycroft/skills/settings.py @@ -62,7 +62,6 @@ import json import hashlib import os -import yaml import time import copy import re @@ -259,6 +258,8 @@ class SkillSettings(dict): Returns: (dict) settings meta """ + # Imported here do handle issue with readthedocs build + import yaml if self._meta_path and os.path.isfile(self._meta_path): _, ext = os.path.splitext(self._meta_path) json_file = True if ext.lower() == ".json" else False