mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
Move Popen call to a single line
This commit is contained in:
parent
ae2ff6185f
commit
0dff24eb96
1 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,7 @@ def create_hook_function(log, event, command, shell, substitute_args):
|
|||
|
||||
log.debug('Running command {0} for event {1}', hook_command, event)
|
||||
|
||||
process = subprocess.Popen(hook_command,
|
||||
shell=shell)
|
||||
|
||||
process.wait()
|
||||
subprocess.Popen(hook_command, shell=shell).wait()
|
||||
|
||||
return hook_function
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue