mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 09:54:31 +01:00
Move completion into beets.ui package and use pkg_resources
This commit is contained in:
parent
e8e0682aae
commit
fa6f7622e0
3 changed files with 3 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ from beets.util import syspath, normpath, ancestry, displayable_path
|
|||
from beets.util.functemplate import Template
|
||||
from beets import library
|
||||
from beets import config
|
||||
from beets.completion import completion_script
|
||||
from beets.ui.completion import completion_script
|
||||
|
||||
# Global logger.
|
||||
log = logging.getLogger('beets')
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import os.path
|
||||
from pkg_resources import resource_string
|
||||
|
||||
def completion_script(commands):
|
||||
base_script = os.path.join(os.path.dirname(__file__), 'completion_base.sh')
|
||||
for line in open(base_script, 'r'):
|
||||
yield line
|
||||
yield resource_string(__name__, 'completion_base.sh')
|
||||
|
||||
options = {}
|
||||
aliases = {}
|
||||
Loading…
Reference in a new issue