From 89fe6be951dc59aad25357f80cb3a121df50748e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 14 Dec 2016 14:18:17 +0100 Subject: [PATCH] Fix (unreported) temp dir not being removed by bam pack -m FILE. --- bam/blend/blendfile_pack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bam/blend/blendfile_pack.py b/bam/blend/blendfile_pack.py index c91b242..9f35ab5 100755 --- a/bam/blend/blendfile_pack.py +++ b/bam/blend/blendfile_pack.py @@ -519,6 +519,8 @@ def pack( yield report(" %s: %r -> %r\n" % (colorize("copying", color='blue'), src, dst)) shutil.copy(src, dst) + shutil.rmtree(base_dir_dst_temp) + yield report(" %s: %r\n" % (colorize("written", color='green'), blendfile_dst)) elif mode == 'ZIP':