Skip to content

Commit

Permalink
simplify import
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Feb 14, 2022
1 parent b2367eb commit aa6e347
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ovos_utils/skills/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from ovos_utils.configuration import read_mycroft_config, \
update_mycroft_config, get_xdg_base
from ovos_utils.configuration import read_mycroft_config, update_mycroft_config, get_xdg_data_save_path
from ovos_utils.messagebus import wait_for_reply
from os.path import join, isdir, isfile
from os import listdir
from ovos_utils.xdg_utils import xdg_data_home


def skills_loaded(bus=None):
Expand Down Expand Up @@ -67,7 +65,7 @@ def get_skills_folder(config=None):
# once XDG PR is merged skills folder will no longer be configurable,
# skills are moved automatically to new locations
# this is already live in mycroft-lib
xdg_skills = join(xdg_data_home(), get_xdg_base(), 'skills')
xdg_skills = join(get_xdg_data_save_path(), 'skills')
if isdir(xdg_skills):
return xdg_skills

Expand Down

0 comments on commit aa6e347

Please sign in to comment.