Files
basis_universal/python/lowlevel_test_native/test_transcoder_basic.py
Richard Geldreich ea6778b2b5 adding new files
2026-01-19 01:59:35 -05:00

25 lines
586 B
Python

# test_transcoder_basic.py
import sys
import os
# Make sure Python can find the .so file
sys.path.append("basisu_py") # Adjust if needed
try:
import basisu_transcoder_python as bt
except ImportError as e:
print("Failed to import basisu_transcoder_python:", e)
raise
print("Successfully loaded basisu_transcoder_python")
# Call bt_get_version() via the pybind11 binding
try:
version = bt.get_version()
print("Transcoder version:", version)
except Exception as e:
print("Error calling bt_get_version:", e)
raise
print("Basic transcoder test complete.")