Skip to content

Commit

Permalink
Extend OVOSSkill to troubleshoot missing attributes and compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 10, 2023
1 parent ca23b2b commit 96daf92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions neon_utils/skills/neon_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
from neon_utils.cache_utils import LRUCache
from neon_utils.file_utils import resolve_neon_resource_file
from neon_utils.user_utils import get_user_prefs
from ovos_workshop.skills.base import BaseSkill
from ovos_workshop.skills.ovos import OVOSSkill

try:
from neon_utils.mq_utils import send_mq_request
except ImportError:
Expand All @@ -76,9 +77,9 @@
CACHE_TIME_OFFSET = 24*60*60 # seconds in 24 hours


class NeonSkill(BaseSkill):
class NeonSkill(OVOSSkill):
def __init__(self, name=None, bus=None, **kwargs):
BaseSkill.__init__(self, name, bus, **kwargs)
OVOSSkill.__init__(self, name, bus, **kwargs)
self.cache_loc = os.path.join(xdg_cache_home(), "neon")
os.makedirs(self.cache_loc, exist_ok=True)
self.lru_cache = LRUCache()
Expand Down

0 comments on commit 96daf92

Please sign in to comment.