diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2020-02-17 23:41:15 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2020-02-17 23:41:15 +0300 |
commit | a5ac142a31fbeb203ecf1db478974aecd8c2dadb (patch) | |
tree | e719af9cd17135a0bc2f04005ebbf89c687739cd /tests/python/bl_blendfile_liblink.py | |
parent | ff1d307e25d5632a8d55f8059c394e4fa1e8115f (diff) |
Temp debug prints for liblink tests to check what happens on windows.
Diffstat (limited to 'tests/python/bl_blendfile_liblink.py')
-rw-r--r-- | tests/python/bl_blendfile_liblink.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/python/bl_blendfile_liblink.py b/tests/python/bl_blendfile_liblink.py index 7d93d7c8455..5c96944446a 100644 --- a/tests/python/bl_blendfile_liblink.py +++ b/tests/python/bl_blendfile_liblink.py @@ -23,6 +23,7 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper): self.ensure_path(output_dir) output_path = os.path.join(output_dir, "blendlib.blend") + print("Saving lib blend file to ", output_path) bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False) bpy.ops.wm.read_factory_settings() @@ -31,12 +32,17 @@ class TestBlendLibLinkSaveLoadBasic(TestHelper): link_dir = os.path.join(output_path, "Mesh") bpy.ops.wm.link(directory=link_dir, filename="LibMesh") + print("Linked lib blend file from ", link_dir) + print("lib file path: ", bpy.data.libraries[0].filepath) + orig_data = self.blender_data_to_tuple(bpy.data, "orig_data") output_path = os.path.join(output_dir, "blendfile.blend") bpy.ops.wm.save_as_mainfile(filepath=output_path, check_existing=False, compress=False) + print("lib file path after saving: ", bpy.data.libraries[0].filepath) bpy.ops.wm.open_mainfile(filepath=output_path, load_ui=False) + print("lib file path after reloading: ", bpy.data.libraries[0].filepath) read_data = self.blender_data_to_tuple(bpy.data, "read_data") assert(orig_data == read_data) |