From 9546374109d30d331ca26074c4d8092928cc920c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Nov 2014 21:48:31 +0100 Subject: [PATCH] minor edits to last commit --- packer/packer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packer/packer.py b/packer/packer.py index 2951b86..45e8aed 100755 --- a/packer/packer.py +++ b/packer/packer.py @@ -93,7 +93,7 @@ def pack(blendfile_src, blendfile_dst, mode='FILE', os.makedirs(base_dir_dst_subdir) lib_visit = {} - _last = b'' + fp_blend_basename_last = b'' for fp, (rootdir, fp_blend_basename) in blendfile_path_walker.FilePath.visit_from_blend( blendfile_src, @@ -103,9 +103,9 @@ def pack(blendfile_src, blendfile_dst, mode='FILE', lib_visit=lib_visit, ): - if _last != fp_blend_basename: + if fp_blend_basename_last != fp_blend_basename: yield report(" %s: %s\n" % (colorize("blend", color='blue'), fp.basedir + fp_blend_basename)) - _last = fp_blend_basename + fp_blend_basename_last = fp_blend_basename # assume the path might be relative path_src_orig = fp.filepath @@ -134,7 +134,7 @@ def pack(blendfile_src, blendfile_dst, mode='FILE', fp_blend_basename.decode('utf-8'), {})[path_dst_final.decode('utf-8')] = path_src_orig.decode('utf-8') - del lib_visit + del lib_visit, fp_blend_basename_last if TIMEIT: print(" Time: %.4f\n" % (time.time() - t))