From f1e5d1d66516e1f1dede893762aa33293a5e98c3 Mon Sep 17 00:00:00 2001 From: Eibriel Date: Sat, 28 Nov 2015 11:55:58 -0300 Subject: [PATCH] Fix 2 for T46811, wrong paths on .bam_paths_uuid --- bam/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bam/cli.py b/bam/cli.py index 46ad506..2764365 100755 --- a/bam/cli.py +++ b/bam/cli.py @@ -315,6 +315,7 @@ class bam_session: blendfile_abs, # str blendfile, # bytes binary_edits, + session_rootdir, paths_uuid_update=None, ): @@ -337,7 +338,8 @@ class bam_session: # update hash! # we could do later, but the file is fresh in cache, so do now from bam.utils.system import uuid_from_file - paths_uuid_update[blendfile.decode('utf-8')] = uuid_from_file(blendfile_abs) + f_rel = os.path.relpath(blendfile_abs, session_rootdir) + paths_uuid_update[f_rel] = uuid_from_file(blendfile_abs) del uuid_from_file @staticmethod @@ -381,6 +383,7 @@ class bam_session: blendfile_abs, blendfile, binary_edits, + session_rootdir, paths_uuid_update, ) del pickle