CC-4965: Fix airtime-silan import tool
-prevent zombie processes
This commit is contained in:
parent
b001053d91
commit
671c627607
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ try:
|
|||
try:
|
||||
command = ['silan', '-f', 'JSON', full_path]
|
||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
out = proc.stdout.read()
|
||||
out = proc.communicate()[0].strip('\r\n')
|
||||
info = json.loads(out)
|
||||
data = {}
|
||||
data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue