From 0f9d67c0c0e7a4623d9e51aaceaa5ba6909ff4fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Nov 2014 17:29:49 +0100 Subject: [PATCH] fix - remap main file as well when checking out --- packer/packer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packer/packer.py b/packer/packer.py index 6034cf7..723be09 100755 --- a/packer/packer.py +++ b/packer/packer.py @@ -142,6 +142,8 @@ def pack(blendfile_src, blendfile_dst, mode='FILE', for src, dst in path_copy_files: # TODO. relative to project-basepath paths_remap[os.path.relpath(dst, base_dir_dst).decode('utf-8')] = src.decode('utf-8') + # main file XXX, should have better way! + paths_remap[os.path.basename(blendfile_src).decode('utf-8')] = blendfile_src.decode('utf-8') if paths_uuid is not None: # TODO, multi-process SHA1 calculation (or better cache)