From 7e3774238301154f7b6b01cead200d90638b6200 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 11 Dec 2014 00:20:04 +0100 Subject: [PATCH] Normalize the path when remapping In some cases it could output very odd paths which wouldn't resolve on OSX for now simple to normalize. --- modules/blendfile_pack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/blendfile_pack.py b/modules/blendfile_pack.py index 7c839be..a70c281 100755 --- a/modules/blendfile_pack.py +++ b/modules/blendfile_pack.py @@ -204,6 +204,7 @@ def pack( path_src_orig = fp.filepath path_rel = blendfile_path_walker.utils.compatpath(path_src_orig) path_src = blendfile_path_walker.utils.abspath(path_rel, fp.basedir) + path_src = os.path.normpath(path_src) # destination path realtive to the root # assert(b'..' not in path_src)