mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
edit: Log the invoked command
This commit is contained in:
parent
210e7b482f
commit
3f4f077272
1 changed files with 3 additions and 2 deletions
|
|
@ -40,11 +40,12 @@ class ParseError(Exception):
|
|||
"""
|
||||
|
||||
|
||||
def edit(filename):
|
||||
def edit(filename, log):
|
||||
"""Open `filename` in a text editor.
|
||||
"""
|
||||
cmd = util.shlex_split(util.editor_command())
|
||||
cmd.append(filename)
|
||||
log.debug(u'invoking editor command: {!r}', cmd)
|
||||
subprocess.call(cmd)
|
||||
|
||||
|
||||
|
|
@ -245,7 +246,7 @@ class EditPlugin(plugins.BeetsPlugin):
|
|||
try:
|
||||
while True:
|
||||
# Ask the user to edit the data.
|
||||
edit(new.name)
|
||||
edit(new.name, self._log)
|
||||
|
||||
# Read the data back after editing and check whether anything
|
||||
# changed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue