Merge pull request #1023 from MatthewScholefield/feature/module-imports
==== Tech Notes ==== Adds the most commonly used methods and classes in more convenient location Changing from mycroft.skills.core import MycroftSkill to simply from mycroft import MycroftSkill ==== Documentation Notes ==== The skill tutorial should be updated to use these shorter import paths.pull/1041/head
commit
14254893cf
|
@ -1,3 +1,9 @@
|
|||
from mycroft.api import Api
|
||||
from mycroft.skills.core import MycroftSkill, FallbackSkill, \
|
||||
intent_handler, intent_file_handler
|
||||
from mycroft.skills.context import adds_context, removes_context
|
||||
from mycroft.messagebus.message import Message
|
||||
|
||||
from os.path import abspath, dirname, join
|
||||
|
||||
__author__ = 'seanfitz'
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Mycroft Core. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Officially exported methods from this file:
|
||||
# play_wav, play_mp3, get_cache_directory,
|
||||
# resolve_resource_file, wait_while_speaking
|
||||
from mycroft.util.log import getLogger
|
||||
from mycroft.util.parse import extract_datetime, extractnumber, normalize
|
||||
from mycroft.util.format import nice_number, convert_number
|
||||
|
||||
import socket
|
||||
import subprocess
|
||||
|
@ -26,7 +32,6 @@ import os.path
|
|||
import time
|
||||
from stat import S_ISREG, ST_MTIME, ST_MODE, ST_SIZE
|
||||
import psutil
|
||||
from mycroft.util.log import getLogger
|
||||
from mycroft.util.signal import *
|
||||
import mycroft.configuration
|
||||
import mycroft.audio
|
||||
|
|
Loading…
Reference in New Issue