From 5b7b5061e7716378139fb7c6210c5e88cf05c36a Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Sun, 2 Jun 2019 23:16:30 +1000 Subject: [PATCH] Avoid using an internal confuse function --- beets/ui/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 3f540a1fa..ef4fd144a 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -39,7 +39,6 @@ from beets.util import syspath, normpath, ancestry, displayable_path, \ from beets import library from beets import config from beets import logging -from confuse import _package_path import six from . import _store_dict @@ -1726,7 +1725,7 @@ def completion_script(commands): ``commands`` is alist of ``ui.Subcommand`` instances to generate completion data for. """ - base_script = os.path.join(_package_path('beets.ui'), 'completion_base.sh') + base_script = os.path.join(os.path.dirname(__file__), 'completion_base.sh') with open(base_script, 'r') as base_script: yield util.text_string(base_script.read())