comparison python/dlna.py @ 712:02aec49585ab

dont pass -d flag; i dont know why
author Jeff Hammel <k0scist@gmail.com>
date Thu, 16 Oct 2014 18:25:30 -0700
parents 7f910ce4da04
children af7b427b3b83
comparison
equal deleted inserted replaced
710:7f910ce4da04 712:02aec49585ab
52 52
53 fd, name = tempfile.mkstemp() 53 fd, name = tempfile.mkstemp()
54 os.write(fd, config) 54 os.write(fd, config)
55 os.close(fd) 55 os.close(fd)
56 56
57 command = [dlna, '-f', name, '-d', '-p', str(options.port)] 57 command = [dlna, '-f', name, '-p', str(options.port)]
58 print (subprocess.list2cmdline(command)) 58 print (subprocess.list2cmdline(command))
59 subprocess.check_call(command) 59 subprocess.check_call(command)
60 60
61 os.remove(name) 61 os.remove(name)
62 shutil.rmtree(options.db_dir) 62 shutil.rmtree(options.db_dir)