Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Mar 25, 2021
1 parent 9214404 commit ae0be8e
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions ovos_utils/waiting_for_mycroft/common_play.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
# Copyright 2018 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from inspect import signature
from abc import abstractmethod
from enum import IntEnum
from ovos_utils.waiting_for_mycroft.base_skill import MycroftSkill
from ovos_utils.playback import CPSMatchType, CPSTrackStatus
try:
from mycroft.skills.common_play_skill import CommonPlaySkill as _CommonPlaySkill
except ImportError:
import sys
from ovos_utils.log import LOG
from ovos_utils import get_mycroft_root
MYCROFT_ROOT_PATH = get_mycroft_root()
if MYCROFT_ROOT_PATH is not None:
sys.path.append(MYCROFT_ROOT_PATH)
from mycroft.skills.common_play_skill import CommonPlaySkill as _CommonPlaySkill
else:
LOG.error("Could not find mycroft root path")
raise ImportError
from ovos_utils import ensure_mycroft_import

ensure_mycroft_import()

from mycroft.skills.common_play_skill import CommonPlaySkill as _CommonPlaySkill


# implementation of
Expand Down

0 comments on commit ae0be8e

Please sign in to comment.