Skip to content

Commit

Permalink
restore util method for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 21, 2023
1 parent 312d33c commit 76a2482
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ovos_workshop/skills/mycroft_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
from ovos_workshop.skills.base import BaseSkill


def is_classic_core():
try:
from mycroft.version import OVOS_VERSION_STR
return False
except:
try:
import mycroft
return True
except:
return False


class _SkillMetaclass(ABCMeta):
"""
This metaclass ensures we can load skills like regular python objects.
Expand Down

0 comments on commit 76a2482

Please sign in to comment.