CC-4965: Fix airtime-silan import tool

-prevent zombie processes
This commit is contained in:
Martin Konecny 2013-02-20 15:22:58 -05:00
parent b001053d91
commit 671c627607

View file

@ -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]))