Merge pull request #2206 from MycroftAI/doc/readthedocs2

Quickfix: readthedocs build
pull/2224/head
Åke 2019-07-18 14:55:13 +02:00 committed by GitHub
commit 345e28f5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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