CC-4965: Fix airtime-silan import tool
-prevent zombie processes
This commit is contained in:
parent
b001053d91
commit
671c627607
@ -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…
x
Reference in New Issue
Block a user