mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 04:22:40 +01:00
Avoid using an internal confuse function
This commit is contained in:
parent
81b1faa053
commit
5b7b5061e7
1 changed files with 1 additions and 2 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue