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.
This commit is contained in:
2014-12-11 00:20:04 +01:00
parent 64090436cd
commit 7e37742383

View File

@@ -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)