From 1fa6b84a083cded5e190a1a736c5ed71b0f14b3c Mon Sep 17 00:00:00 2001 From: Walt Woods Date: Tue, 9 Jul 2019 17:12:25 -0700 Subject: [PATCH] Fix for pulverize.py, which inconsistently used os.path.join() and string concatenation. --- pulverize.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pulverize.py b/pulverize.py index 2575004..030de35 100755 --- a/pulverize.py +++ b/pulverize.py @@ -88,7 +88,7 @@ def render_proc(args, start_frame, end_frame, outdir): """ Render a chunk of the blender file. """ - outfilepath = '%spulverize_frames_#######' % outdir + outfilepath = os.path.join(outdir, 'pulverize_frames_#######') params = ['blender', '-b', args.blendfile, '-s', '%s' % start_frame, '-e', '%s' % end_frame, @@ -105,8 +105,9 @@ def join_chunks(args, outdir): Concatenate the video chunks together with ffmpeg """ # Which files do we need to join? - chunk_files = sorted(glob.glob(os.path.join(outdir, 'pulverize_frames_*'))) - # log.debug("file list is: %s", chunk_files) + chunk_glob = os.path.join(outdir, 'pulverize_frames_*') + chunk_files = sorted(glob.glob(chunk_glob)) + # log.debug("file list for %s is: %s", chunk_glob, chunk_files) file_list = os.path.join(outdir, 'pulverize_input_files.txt') @@ -143,4 +144,4 @@ def join_chunks(args, outdir): render_chunks(args, frame_start, frame_end, outdir) if not args.render_only: - join_chunks(args, outdir) \ No newline at end of file + join_chunks(args, outdir)