Skip to content

Commit

Permalink
more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 21, 2023
1 parent ac34af6 commit 061914b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ovos_workshop/skills/mycroft_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class MycroftSkill(BaseSkill, metaclass=_SkillMetaclass):
recommended to implement `OVOSSkill` to properly implement new methods.
"""

@deprecated("mycroft-core has been deprecated, please move to ovos-core", "0.1.0")
def __classic_init__(self, name: str = None, bus: MessageBusClient = None,
use_settings: bool = True, *args, **kwargs):
"""
Expand All @@ -151,8 +152,8 @@ def __classic_init__(self, name: str = None, bus: MessageBusClient = None,

self.settings_write_path = self.root_dir

@deprecated("MycroftSkill class has been deprecated, please subclass from OVOSSkill", "0.1.0")
@backwards_compat(classic_core=__classic_init__)
@deprecated("MycroftSkill class has been deprecated, please subclass from OVOSSkill", "0.1.0")
def __init__(self, name: str = None, bus: MessageBusClient = None,
use_settings: bool = True, *args, **kwargs):
"""
Expand Down Expand Up @@ -317,10 +318,7 @@ def __get_settings_pclassic(self):
return join(self.settings_write_path, 'settings.json')
return super()._settings_path

@backwards_compat(classic_core=__get_settings_pclassic)
def __get_settings_p(self):
return super()._settings_path

@property
@backwards_compat(classic_core=__get_settings_pclassic)
def _settings_path(self):
return self.__get_settings_p()
return super()._settings_path

0 comments on commit 061914b

Please sign in to comment.