Files
test2/tests/blender_as_python_module/import_bpy.py
2023-06-15 13:35:34 +10:00

11 lines
261 B
Python

# SPDX-FileCopyrightText: 2002-2022 Blender Foundation
#
# SPDX-License-Identifier: GPL-2.0-or-later
# Add directory with module to the path.
import sys
sys.path.append(sys.argv[1])
# Just import bpy and see if there are any dynamic loader errors.
import bpy