Changeset View
Changeset View
Standalone View
Standalone View
tests/python/bl_blendfile_liblink.py
| # Apache License, Version 2.0 | # Apache License, Version 2.0 | ||||
| # ./blender.bin --background -noaudio --python tests/python/bl_blendfile_liblink.py | # ./blender.bin --background -noaudio --python tests/python/bl_blendfile_liblink.py | ||||
| import bpy | import bpy | ||||
| import os | import os | ||||
| import sys | import sys | ||||
| sys.path.append(os.path.dirname(os.path.realpath(__file__))) | sys.path.append(os.path.dirname(os.path.realpath(__file__))) | ||||
| from bl_blendfile_utils import TestHelper | from bl_blendfile_utils import TestHelper | ||||
| class TestBlendLibLinkHelper(TestHelper): | class TestBlendLibLinkHelper(TestHelper): | ||||
| def __init__(self, args): | def __init__(self, args): | ||||
| self.args = args | self.args = args | ||||
| @staticmethod | @staticmethod | ||||
| def reset_blender(): | def reset_blender(): | ||||
| bpy.ops.wm.read_homefile(use_empty=True, use_factory_startup=True) | bpy.ops.wm.read_homefile(use_empty=True, use_factory_startup=True) | ||||
| bpy.data.orphans_purge(do_recursive=True) | bpy.data.orphans_purge(do_recursive=True) | ||||
| ▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines | |||||