Files
test2/tests/blender_as_python_module/import_bpy.py
2025-01-21 16:51:40 +11:00

20 lines
416 B
Python

# SPDX-FileCopyrightText: 2002-2022 Blender Authors
#
# 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
# Try bundled libraries.
bpy.utils.expose_bundled_modules()
from pxr import Usd
import MaterialX
import OpenImageIO
import PyOpenColorIO
import pyopenvdb