Packer: store the output path of the blend file in the target directory

This allows the Flamenco Add-on to get the final path of the blend file.
This commit is contained in:
Sybren A. Stüvel
2018-03-14 16:06:21 +01:00
parent 73b264f6bc
commit 6b51183095
2 changed files with 17 additions and 0 deletions
+10
View File
@@ -239,3 +239,13 @@ class PackTest(AbstractPackTest):
[self.blendfiles / 'textures/HDRI/Myanmar/Golden Palace 2, Old Bagan-1k.exr'],
list(packer.missing_files)
)
def test_output_path(self):
infile = self.blendfiles / 'basic_file.blend'
packer = pack.Packer(infile, self.blendfiles.parent, self.tpath)
packer.strategise()
self.assertEqual(
self.tpath / self.blendfiles.name / infile.name,
packer.output_path
)