python2/3 list/map

This commit is contained in:
j 2016-08-31 00:30:45 +02:00
commit d6ef829998
3 changed files with 5 additions and 5 deletions

View file

@ -48,10 +48,10 @@ tiles without having to decode the video again.
parser.print_help()
sys.exit()
opts.videos = map(os.path.abspath, args)
opts.videos = list(map(os.path.abspath, args))
if opts.points:
opts.points = map(float, opts.points.split(','))
opts.points = list(map(float, opts.points.split(',')))
opts.modes = [m.strip() for m in opts.modes.split(',')]
opts.sizes = map(int, opts.sizes.split(','))
opts.sizes = list(map(int, opts.sizes.split(',')))
oxtimelines.Timelines(opts.videos, opts.tiles, opts.cuts, opts.points, opts.modes, opts.sizes, opts.wide, opts.log).render()