comparison iviewget.py @ 3:34471d354603

Use os.path.join to construct the output filename, hopefully more portable.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 20 Aug 2009 17:35:14 +0930
parents 6edc508e0775
children c4188feb8f26
comparison
equal deleted inserted replaced
2:6edc508e0775 3:34471d354603
40 40
41 def getSeries(iview, series, outfile = None): 41 def getSeries(iview, series, outfile = None):
42 cmd = [flvstreamerpath] 42 cmd = [flvstreamerpath]
43 43
44 if outfile == None: 44 if outfile == None:
45 outfile = outpath + '/' + series.asset.replace('/', '-') + '.' + outext 45 outfile = os.path.join(outpath, series.asset.replace('/', '-') + '.' + outext)
46 cmd += iview.genFetchCmd(series, outfile) 46 cmd += iview.genFetchCmd(series, outfile)
47 p = subprocess.Popen(cmd) 47 p = subprocess.Popen(cmd)
48 while True: 48 while True:
49 res = p.poll() 49 res = p.poll()
50 if res == None: 50 if res == None: