2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2002-2022 Blender Authors
|
2023-06-15 13:09:04 +10:00
|
|
|
#
|
2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2021-03-29 22:26:54 +05:30
|
|
|
|
2022-09-15 18:10:44 +02:00
|
|
|
# Add directory with module to the path.
|
|
|
|
import sys
|
|
|
|
sys.path.append(sys.argv[1])
|
|
|
|
|
2025-01-21 16:51:40 +11:00
|
|
|
# Just import `bpy` and see if there are any dynamic loader errors.
|
2021-03-29 22:26:54 +05:30
|
|
|
import bpy
|
2025-01-17 10:13:31 +01:00
|
|
|
|
2025-01-21 16:51:40 +11:00
|
|
|
# Try bundled libraries.
|
2025-01-17 10:13:31 +01:00
|
|
|
bpy.utils.expose_bundled_modules()
|
|
|
|
|
|
|
|
from pxr import Usd
|
|
|
|
import MaterialX
|
|
|
|
import OpenImageIO
|
|
|
|
import PyOpenColorIO
|
2025-02-06 14:53:16 +01:00
|
|
|
|
|
|
|
# Test both old and new names, remove when all 4.4 libs have landed.
|
|
|
|
try:
|
|
|
|
import pyopenvdb
|
|
|
|
except ModuleNotFoundError:
|
|
|
|
import openvdb
|
|
|
|
import oslquery
|